コード例 #1
0
 void Start()
 {
     OwnerReferences  = Owner.GetComponent <SentientReferences>();
     _CollisionKeeper = GetComponent <CollisionKeeper>();
     _Collider        = gameObject.GetComponent <Collider2D>();
     InitialPosition  = gameObject.transform.localPosition;
     InitialRotation  = gameObject.transform.localEulerAngles.z;
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 void Start()
 {
     References = GetComponent <SentientReferences>();
 }