public void ValidateLevel(){ if(levelChosen != 0){ RPCWrapper.RPC("LoadWeaponLevel", RPCMode.Server); Application.LoadLevel ("Android - WeaponScene"); PhaseLoader.Prepare (levelChosen); } }
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"); } }
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); }
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); }
private void LoadNextPhase(int nextPhaseType, int nextLevel, int nextPhase) { PhaseLoader.Load(nextLevel, nextPhase, (PhaseLoader.Type)nextPhaseType); }