Ejemplo n.º 1
0
 void Start()
 {
     status          = Status.STAY;
     audioSource     = GetComponent <AudioSource>();
     animator        = GetComponent <Animator>();
     selectionScript = transform
                       .parent
                       .gameObject
                       .GetComponent <selectionScript>();
     attackTimer = attackRate;
 }
Ejemplo n.º 2
0
 void Start()
 {
     life            = maxLife;
     selectionScript = FindObjectOfType <selectionScript>();
     audioSource     = GetComponent <AudioSource>();
 }