Exemple #1
0
 void Awake()
 {
     _anim = GetComponent <Animator>();
     _move = GetComponent <AIMovementComp>();
     _aim  = GetComponent <AITargetComp>();
     Initialized();
 }
 void Awake()
 {
     _aim  = GetComponent <AITargetComp>();
     _move = GetComponent <AIMovementComp>();
     _anim = GetComponent <Animator>();
     Initialized();
     _healthSlider = healthCanvas.GetComponentInChildren <Slider>();
 }
 // Use this for initialization
 void Start()
 {
     _movementComp = GetComponent <AIMovementComp>();
     _targetComp   = GetComponent <AITargetComp>();
 }