void Start() { //_poolAttack = new List<IAttackBehavior>(); _moveStrategy = new MoveHorizontal(); _jumpStrategy = new JumpNormal(); _attackStrategy = new Semiautomatic(); initPoolAttack(); }
public ChunLi(IKickBehavior _kickBehavior, IJumpBehavior _jumpBehavior) : base(_kickBehavior, _jumpBehavior) { }
public Ryu(IKickBehavior _kickBehavior, IJumpBehavior _jumpBehavior) : base(_kickBehavior, _jumpBehavior) { }
public void setjump(IJumpBehavior jumpBehavior) { this.jumpBehavior = jumpBehavior; }
public Fighter(IKickBehavior _kickBehavior, IJumpBehavior _jumpBehavior) { this.kickBehavior = _kickBehavior; this.jumpBehavior = _jumpBehavior; }