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