/// <summary> /// Uses the string parameter to Set phase directly. /// </summary> /// <param name="pPhase"></param> public void SetPhase(string pPhase) { pPhase = pPhase.ToUpper(); switch (pPhase) { case ("GAMESTART"): phase = Phases.GAMESTART; Debug.Log ("Doing game start things..."); break; case ("ROLL"): phase = Phases.ROLL; Debug.Log ("Doing roll things..."); break; case ("TRADE"): phase = Phases.TRADE; Debug.Log ("Doing Trade things..."); break; case ("BUILD"): phase = Phases.BUILD; Debug.Log ("Doing build things..."); break; case ("PROCESS"): phase = Phases.PROCESS; break; case ("ENDGAME"): phase = Phases.ENDGAME; break; } curPhaseIndex = (int)phase.GetTypeCode(); }
/// <summary> /// Uses the string parameter to Set phase directly. /// </summary> /// <param name="pPhase"></param> public void SetPhase(string pPhase) { pPhase = pPhase.ToUpper(); switch (pPhase) { case ("GAMESTART"): phase = Phases.GAMESTART; break; case ("ROLL"): phase = Phases.ROLL; break; case ("TRADE"): phase = Phases.TRADE; break; case ("BUILD"): phase = Phases.BUILD; break; case ("PROCESS"): phase = Phases.PROCESS; break; case ("ENDGAME"): phase = Phases.ENDGAME; break; } curPhaseIndex = (int)phase.GetTypeCode(); }