//-------------------------------------------------------------------------------- // EVENT CALLBACKS //-------------------------------------------------------------------------------- void Awake() { // EAGERLY ACQUIRE SINGLETON REFERENCE inst = this; // CACHE COMMON SIBLINGS input = GetComponent <HeroInput>(); fx = GetComponentInChildren <HeroFX>(); body = this.rigidbody; xform = this.transform; }
//-------------------------------------------------------------------------------- // EVENT CALLBACKS //-------------------------------------------------------------------------------- void Awake() { // EAGERLY ACQUIRE SINGLETON REFERENCE inst = this; // CACHE COMMON SIBLINGS input = GetComponent<HeroInput>(); fx = GetComponentInChildren<HeroFX>(); body = this.rigidbody; xform = this.transform; }