示例#1
0
    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)
 {
 }
示例#3
0
 public Ryu(IKickBehavior _kickBehavior, IJumpBehavior _jumpBehavior) : base(_kickBehavior, _jumpBehavior)
 {
 }
示例#4
0
 public void setjump(IJumpBehavior jumpBehavior)
 {
     this.jumpBehavior = jumpBehavior;
 }
示例#5
0
 public Fighter(IKickBehavior _kickBehavior, IJumpBehavior _jumpBehavior)
 {
     this.kickBehavior = _kickBehavior;
     this.jumpBehavior = _jumpBehavior;
 }