public override ExtendedEventArgs process() { //Debug.Log ("ResponseRREndGame ExtendedEventArgs"); ResponseRREndGameEventArgs args = new ResponseRREndGameEventArgs(); args.win = this.win; args.winningTime = this.winningTime; return args; }
public override ExtendedEventArgs process() { //Debug.Log ("ResponseRREndGame ExtendedEventArgs"); ResponseRREndGameEventArgs args = new ResponseRREndGameEventArgs(); args.win = this.win; args.winningTime = this.winningTime; return(args); }
public void ResponseRREndGame(ExtendedEventArgs eventArgs) { // Debug.Log ("ResponseEndGame Called in Running.cs 1"); ResponseRREndGameEventArgs args = eventArgs as ResponseRREndGameEventArgs; if (args.win == true) { PlayerPrefs.SetInt("Win", 1); } else { PlayerPrefs.SetInt("Win", 0); } PlayerPrefs.SetString("Winning Time", args.winningTime); // Debug.Log ("ResponseEndGame Called in Running.cs 2"); Application.LoadLevel("RREndScene"); }