Exemplo n.º 1
0
 void Awake()
 {
     _creature = gameObject.GetComponentInChildren<CRCreature>();
     _movementBehaviour = gameObject.AddComponent<CRMovementBehaviour>();
     _attackBehaviour = gameObject.AddComponent<CRAttackBehaviour>();
     _abilityBehaviour = gameObject.AddComponent<CRAbilityBehaviour>();
 }
Exemplo n.º 2
0
    public CRAutoAttack(CRAttackBehaviour attack, bool b)
    {
        _attack = attack;

        _auto = b;
    }
Exemplo n.º 3
0
 public CRAttack(CRAttackBehaviour attack, CRController target)
 {
     _attack = attack;
     _target = target;
 }