Esempio n. 1
0
 // Use this for initialization
 void Start()
 {
     influenceProtocols = FindObjectOfType <InfluenceProtocols> ().GetComponent <InfluenceProtocols> ();
     playerValues       = FindObjectOfType <PlayerValues> ().GetComponent <PlayerValues> ();
     statusText         = FindObjectOfType <StatusText> ().GetComponent <StatusText> ();
     this.gameObject.SetActive(false);
 }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        statusText   = FindObjectOfType <StatusText> ().GetComponent <StatusText> ();
        playerValues = FindObjectOfType <PlayerValues> ().GetComponent <PlayerValues> ();
        if (!playerValues.playersComputer)
        {
            clockOutButton.gameObject.SetActive(false);
        }
        statusText.changeText("");
        influenceProtocols = FindObjectOfType <InfluenceProtocols> ().GetComponent <InfluenceProtocols> ();
        planet             = FindObjectOfType <Planet> ().GetComponent <Planet> ();
//		influenceProtocolsPanel.SetActive(false);
//		dayText.text = "Day " + playerValues.currentDay.ToString ();
        climateControllers.SetActive(false);
        messageLoader = FindObjectOfType <MessageLoader> ().GetComponent <MessageLoader> ();
        messagePanel.SetActive(false);

        playSoundEffect(1);
    }