Esempio n. 1
0
    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 { }
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        gameController = GameObject.FindGameObjectWithTag ("GameController").GetComponent<Mz_BaseScene> ();

        originalScale = this.transform.localScale;
    }