Example #1
0
    void Awake()
    {
        playerSettings = GameObject.Find ("PlayerSettings").GetComponent<sPlayerSettings>();
        playerSettings.SetFPSCamera(FPSCamera);
        playerSettings.SetFPSPlayer(gameObject);

        if(!playerSettings.GetPlayerIsRTS()){
            FPSCamera.SetActive(true);
        }
    }
Example #2
0
 void Update()
 {
     if (!playerSettings.GetPlayerIsRTS())
     {
         InputMovement();
     }
     else
     {
         SyncedMovement();
     }
 }
Example #3
0
    void Awake()
    {
        playerSettings = GameObject.Find("PlayerSettings").GetComponent <sPlayerSettings>();
        playerSettings.SetFPSCamera(FPSCamera);
        playerSettings.SetFPSPlayer(gameObject);

        if (!playerSettings.GetPlayerIsRTS())
        {
            FPSCamera.SetActive(true);
        }
    }
Example #4
0
 void Start()
 {
     if (playerSettings.GetPlayerIsRTS())
     {
         Network.Instantiate(goRTSPlayerPrefab, goRTSSpawn.transform.position, Quaternion.identity, 0);
     }
     else
     {
         Network.Instantiate(goFPSPlayerPrefab, goFPSSpawn.transform.position, Quaternion.identity, 0);
     }
 }