Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        levelManager   = FindObjectOfType <LevelManager> ();
        playerGovernor = FindObjectOfType <PlayerGovernor> ();

        //gameObject.GetComponent<MeshRenderer> ().material.color = inactiveCheckPoint;

        lightAnim = GetComponentInChildren <LightAnimation>();
        theLight  = GetComponentInChildren <Light>();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        levelManager = FindObjectOfType<LevelManager> ();
        playerGovernor = FindObjectOfType<PlayerGovernor> ();

        //gameObject.GetComponent<MeshRenderer> ().material.color = inactiveCheckPoint;

        lightAnim = GetComponentInChildren<LightAnimation>();
        theLight = GetComponentInChildren<Light>();
    }
Esempio n. 3
0
    // Update is called once per frame
    void Update()
    {
        // Find the active player
        player         = GameObject.FindGameObjectWithTag("Player");
        playerGovernor = FindObjectOfType <PlayerGovernor> ();
        if (endLevelPanel == null)
        {
            Debug.LogError("Please drag endLevelPanel from GUI to inspector in LevelManager");
        }

        SecretCommandsUpdate();
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     levelManager = FindObjectOfType<LevelManager> ();
     playerGovernor = FindObjectOfType<PlayerGovernor>();
 }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     playerGovernor = FindObjectOfType <PlayerGovernor> ();
     levelManager   = FindObjectOfType <LevelManager> ();
 }
Esempio n. 6
0
    // Update is called once per frame
    void Update()
    {
        // Find the active player
        player = GameObject.FindGameObjectWithTag ("Player");
        playerGovernor = FindObjectOfType<PlayerGovernor> ();
        if(endLevelPanel == null)
        {
            Debug.LogError("Please drag endLevelPanel from GUI to inspector in LevelManager");
        }

        SecretCommandsUpdate();
    }