コード例 #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>();
    }
コード例 #2
0
ファイル: CheckPoint.cs プロジェクト: elrod/Aegyptia
    // Use this for initialization
    void Start()
    {
        levelManager = FindObjectOfType<LevelManager> ();
        playerGovernor = FindObjectOfType<PlayerGovernor> ();

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

        lightAnim = GetComponentInChildren<LightAnimation>();
        theLight = GetComponentInChildren<Light>();
    }
コード例 #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();
    }
コード例 #4
0
ファイル: KillPlayer.cs プロジェクト: elrod/Aegyptia
 // Use this for initialization
 void Start()
 {
     levelManager = FindObjectOfType<LevelManager> ();
     playerGovernor = FindObjectOfType<PlayerGovernor>();
 }
コード例 #5
0
ファイル: DisableSwitch.cs プロジェクト: elrod/Aegyptia
 // Use this for initialization
 void Start()
 {
     playerGovernor = FindObjectOfType <PlayerGovernor> ();
     levelManager   = FindObjectOfType <LevelManager> ();
 }
コード例 #6
0
ファイル: LevelManager.cs プロジェクト: elrod/Aegyptia
    // 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();
    }