// Use this for initialization void Start() { levelManager = FindObjectOfType <LevelManager> (); playerGovernor = FindObjectOfType <PlayerGovernor> (); //gameObject.GetComponent<MeshRenderer> ().material.color = inactiveCheckPoint; lightAnim = GetComponentInChildren <LightAnimation>(); theLight = GetComponentInChildren <Light>(); }
// Use this for initialization void Start() { levelManager = FindObjectOfType<LevelManager> (); playerGovernor = FindObjectOfType<PlayerGovernor> (); //gameObject.GetComponent<MeshRenderer> ().material.color = inactiveCheckPoint; lightAnim = GetComponentInChildren<LightAnimation>(); theLight = GetComponentInChildren<Light>(); }
// 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(); }
// Use this for initialization void Start() { levelManager = FindObjectOfType<LevelManager> (); playerGovernor = FindObjectOfType<PlayerGovernor>(); }
// Use this for initialization void Start() { playerGovernor = FindObjectOfType <PlayerGovernor> (); levelManager = FindObjectOfType <LevelManager> (); }
// 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(); }