//function that starts the stream takes in energy quality skill charm comp public void startStream(int energy, MasterGameObject.strQuality strQuality, int skill, int charm, int comp) { cashPerInt = Random.RandomRange(1, 15); isStreaming = true; if (energy < 5) { Debug.Log("failed to stream, energy too low"); return; } length = energy; cashPerStream = cashPerInt; }
public static void Run() { MasterGameObject mgo = new MasterGameObject(); Console.WriteLine(mgo); Console.WriteLine("\nWhen new level is reached ..."); object saved = mgo.GetCurrentState(); mgo.ChangeCurrentState(); Console.WriteLine(mgo); Console.WriteLine("\nWhen a restore is required ..."); mgo.RestoreState(saved); Console.WriteLine(mgo); }
void Awake() { DontDestroyOnLoad(this.gameObject); instance = this; }