Esempio n. 1
0
 void Start()
 {
     OwnerReferences  = Owner.GetComponent <SentientReferences>();
     _CollisionKeeper = GetComponent <CollisionKeeper>();
     _Collider        = gameObject.GetComponent <Collider2D>();
     InitialPosition  = gameObject.transform.localPosition;
     InitialRotation  = gameObject.transform.localEulerAngles.z;
 }
 private void Start()
 {
     References = GetComponent <SentientReferences>();
     minHealth  = health * .2f;
     // Just to get values to display
     UpdateHealth(maxHealth);
     UpdateStamina(0);
     waitStaminaRestoreDelay = new WaitForSeconds(staminaRestoreDelay);
     waitStaminaRestoreRate  = new WaitForSeconds(staminaRestoreRate);
 }
Esempio n. 3
0
 void Start()
 {
     References = GetComponent <SentientReferences>();
 }