Пример #1
0
    //--------------------------------------------------------------------------------
    // INIT
    //--------------------------------------------------------------------------------

    void Awake()
    {
        // CACHE REFERENCES
        xform          = transform;
        idleSprite     = xform.Find("idlePose").GetComponent <SpriteRenderer>();
        pose           = GetComponentInChildren <HeroPose>();
        ammoLabel.text = "";
        ammoXform      = ammoLabel.transform;
        ammoScale      = ammoXform.localScale;
    }
Пример #2
0
 //--------------------------------------------------------------------------------
 // INIT
 //--------------------------------------------------------------------------------
 void Awake()
 {
     // CACHE REFERENCES
     xform = transform;
     idleSprite = xform.Find("idlePose").GetComponent<SpriteRenderer>();
     pose = GetComponentInChildren<HeroPose>();
     ammoLabel.text = "";
     ammoXform = ammoLabel.transform;
     ammoScale = ammoXform.localScale;
 }