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); }
void Start() { References = GetComponent <SentientReferences>(); }