Example #1
0
	public void ValidateLevel(){
		if(levelChosen != 0){
			RPCWrapper.RPC("LoadWeaponLevel", RPCMode.Server);
			Application.LoadLevel ("Android - WeaponScene");
			PhaseLoader.Prepare (levelChosen);
		}
	}
Example #2
0
 private void LoadNextPhase()
 {
     if (!isFinalPhase)
     {
         RPCWrapper.RPC("LoadNextPhase", RPCMode.Others, (int)nextPhaseType, nextLevel, nextPhase);               // Tell the clients to load the next phase.
         PhaseLoader.Load(nextLevel, nextPhase, nextPhaseType);
     }
     else
     {
         RPCWrapper.RPC("LoadScoreScene", RPCMode.Others);              // Tell the clients to load scores scene.
         Application.LoadLevel("Windows - ScoreScene");
     }
 }
Example #3
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Debug.LogError(GetType().Name + " : Two instances of " + GetType().Name + " running at the same time.");
        }

        DontDestroyOnLoad(transform.gameObject);
    }
Example #4
0
 public void OnButtonPressedWin()
 {
     PhaseLoader.Load();
 }
 public void OnButtonPressedAndroid()
 {
     RPCWrapper.RPC("OnButtonPressedWin", RPCMode.Server);
     PhaseLoader.Load();
 }
 public void LoadWeaponLevel()
 {
     Application.LoadLevel("Windows - WeaponScene");
     PhaseLoader.Prepare(levelChoice);
 }
Example #7
0
 private void LoadNextPhase(int nextPhaseType, int nextLevel, int nextPhase)
 {
     PhaseLoader.Load(nextLevel, nextPhase, (PhaseLoader.Type)nextPhaseType);
 }