protected virtual void Awake() { GameObject sceneObj = GameObject.FindGameObjectWithTag("GameController"); baseScene = sceneObj.GetComponent<Mz_BaseScene>(); try { sprite = this.gameObject.GetComponent<tk2dSprite>(); animatedSprite = this.gameObject.GetComponent<tk2dAnimatedSprite>(); } catch { } }
// Use this for initialization void Start() { gameController = GameObject.FindGameObjectWithTag ("GameController").GetComponent<Mz_BaseScene> (); originalScale = this.transform.localScale; }