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 CRMove(CRMovementBehaviour movement, Vector3 pos)
 {
     _movement = movement;
     _pos = pos;
 }
Exemplo n.º 3
0
 public CRFollow(CRMovementBehaviour movement, Transform target, float distance = 0)
 {
     _movement = movement;
     _target = target;
     _distance = distance;
 }