Exemplo n.º 1
0
    void Start()
    {
        ldatabase = GameObject.FindGameObjectWithTag("Level Database").GetComponent <LevelDatabase>();
        gameMaker = GameObject.FindGameObjectWithTag("Game Creator").GetComponent <GameCreator03>();
        MC        = GameObject.Find("MouseControl").GetComponent <MouseControl>();

        GamesUIPanel   = this.transform.FindChild("Game UI Panel").gameObject;
        RulesPanel     = this.transform.FindChild("Rules Panel").gameObject;
        TimerPanel     = this.transform.FindChild("Timer Panel").gameObject;
        DefeatPanel    = this.transform.FindChild("Defeat Panel").gameObject;
        HighScorePanel = this.transform.FindChild("High Score Notification").gameObject;


        KUM = GamesUIPanel.transform.FindChild("Key Side Panel").GetComponent <KeyUIManager>();

        SetUpGamesPanel(); // FInished

        InstallGadgets();

        Text StartShowButtonText = RulesPanel.transform.FindChild("Start_Show Game Button/Text").GetComponent <Text>();

        StartShowButtonText.text = "Start Game";
        // Set up the Timer	if needed

        //NOTE: Once the GameCreator has finished GameScript should
        // Run
        // Run "FillInRulesDisplay()"
        // Run "OpenDoorTrigger"

        ruleTotal = 0;
    }
Exemplo n.º 2
0
 void Start()
 {
     KUM = this.transform.parent.GetComponent <KeyUIManager>();
 }