void Awake() { _creature = gameObject.GetComponentInChildren<CRCreature>(); _movementBehaviour = gameObject.AddComponent<CRMovementBehaviour>(); _attackBehaviour = gameObject.AddComponent<CRAttackBehaviour>(); _abilityBehaviour = gameObject.AddComponent<CRAbilityBehaviour>(); }
public CRAutoAttack(CRAttackBehaviour attack, bool b) { _attack = attack; _auto = b; }
public CRAttack(CRAttackBehaviour attack, CRController target) { _attack = attack; _target = target; }