Exemple #1
0
    //--------------------------------------------------------------------------------
    // 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;
    }
Exemple #2
0
    //--------------------------------------------------------------------------------
    // 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;
    }