Esempio n. 1
0
    void Awake()
    {
        playerSettings = GameObject.Find ("PlayerSettings").GetComponent<sPlayerSettings>();
        playerSettings.SetRTSCamera(RTSCamera);
        playerSettings.SetRTSPlayer(gameObject);

        if(playerSettings.GetPlayerIsRTS()){
            RTSCamera.SetActive(true);
            RTSCamera.SetActive(true);
        }
    }
Esempio n. 2
0
    void Awake()
    {
        playerSettings = GameObject.Find("PlayerSettings").GetComponent <sPlayerSettings>();
        playerSettings.SetRTSCamera(RTSCamera);
        playerSettings.SetRTSPlayer(gameObject);

        if (playerSettings.GetPlayerIsRTS())
        {
            RTSCamera.SetActive(true);
            RTSCamera.SetActive(true);
        }
    }