public ISprite build(IMovementState mState) { product = localFactory.build(mState); if (product == null) { Console.WriteLine("help"); } return(product); }
public AbsMovementState(AbsAvatarObject avatar) { this.avatar = avatar; factory = new MetaFactory(avatar.powerUpState, avatar.content); avatar.Sprite = factory.build(this); }
public AbsPowerState(AbsAvatarObject avatar) { this.avatar = avatar; factory = new MetaFactory(this, avatar.content); avatar.Sprite = factory.build(avatar.movementState); }