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