Example #1
0
    void Start()
    {
        buttonReleaseScript = GameObject.Find("ButtonRelease").GetComponent<ButtonReleased>();
        inGameUI = GameObject.Find("InGameUIManager").GetComponent<InGameUIManager>();
        nappyPadSpawnerObj = GameObject.Find("NappyPadSpawner");

        if(nappyPadSpawnerObj != null)
        {
            nappyPadSpawnerScript = nappyPadSpawnerObj.GetComponent<NappyPadSpawner>();
        }

        nappyPadSpawnerScript.nappyPadCount++;

        if(!inGameUI.firstNappy)
        {
            if(inGameUI.isLevel1)
            {
                inGameUI.Enable("PlayerButtonTutorialLabel5");
                inGameUI.Enable("LeftArrow");
                inGameUI.firstNappy = true;
            }
        }

        sm = GameObject.Find("SoundManager").GetComponent<SoundManager>();
    }
Example #2
0
    void Start()
    {
        enemySpawnerObj = GameObject.Find("EnemySpawner");

        gameSpawnScript = GameObject.Find("GameSpawner").GetComponent<GameSpawner>();

        if(enemySpawnerObj != null)
        {
            enemySpawnerScript = enemySpawnerObj.GetComponent<EnemySpawner>();
        }

        nappyPadSpawnerObj = GameObject.Find("NappyPadSpawner");

        if(nappyPadSpawnerObj != null)
        {
            nappyPadSpawnerScript = nappyPadSpawnerObj.GetComponent<NappyPadSpawner>();
        }

        //Time.timeScale = 1;

        GameObject smobj = GameObject.Find("SoundManager");

        if(smobj != null)
        {
            Debug.Log("Sound Manager Found");
            sm = smobj.GetComponent<SoundManager>();
        }

        PF_Bottle = null;

        if(isLevel1)
        {
            StartCoroutine("AppearLabel" , "1. TomatoIcon");
            StartCoroutine("AppearLabel" , "PlayerCostLabel");
        }

        secondPlayer = false;
    }