I found this piece of code of initialize when working on Sprite_Character
def initialize(viewport, character = nil) super(viewport) @character = character @balloon_duration = 0 update endBut I failed to understand why they put character = nil since obviously all update need the character not to be nil
Seems there's a hidden message of this kind of design. Thought?
def initialize(viewport, character = nil) super(viewport) @character = character @balloon_duration = 0 update endBut I failed to understand why they put character = nil since obviously all update need the character not to be nil
Seems there's a hidden message of this kind of design. Thought?