// Use this for initialization
    void Start()
    {
        managerScript             = managerObject.GetComponent <TwoDGameManager> ();
        spriteControlObjectScript = spriteControllerObject.GetComponent <SpriteControllerSprite> ();


        ownLoseScript_Call = GetComponent <MG1LoseScript> ();
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        TwoDGameManObj = GameObject.FindGameObjectWithTag("GameControl2D");
        TwoDGameManScr = TwoDGameManObj.GetComponent <TwoDGameManager> ();

        callSpriteBoss = GameObject.FindGameObjectWithTag("SpriteController");
        callSprScr     = callSpriteBoss.GetComponent <SpriteControllerSprite> ();

        ownRender = gameObject.GetComponent <SpriteRenderer> ();

        ownRender.enabled = false;
    }