Exemplo n.º 1
0
 protected new void Awake()
 {
     base.Awake();
     if (shooter == null)
     {
         shooter = GetComponentInChildren <Shooter>();
     }
     if (aimer == null)
     {
         aimer = GetComponentInChildren <EnemyAimer>();
     }
 }
Exemplo n.º 2
0
 protected new void Awake()
 {
     base.Awake();
     animActions = gameObject.GetComponent <AnimationActions>();
     if (shooter == null)
     {
         shooter = GetComponentInChildren <Shooter>();
     }
     if (aimer == null)
     {
         aimer = GetComponentInChildren <EnemyAimer>();
     }
 }