public static JamesVanAllen createInstance(Task.Callback c) { if (instance == null) { instance = new JamesVanAllen(c); } return(instance); }
//Create new game public GameSave() { buildings = new List <Building>(); projects = new List <Project>(); tasks = new List <Task>(); tasks.Add(JamesVanAllen.createInstance(this)); tasks.Add(ThorAble.createInstance(this)); buildings.Add(new DollyMadisonHouse(this)); projects.Add(new Pioneer1(this)); money = 100000000; awareness = 500; currentDay = 0; secondsRemaining = secondsPerDay; inProgressCount = 0; }
private void initTasks() { tasks = new List <Task>(); tasks.Add(JamesVanAllen.getInstance()); tasks.Add(ThorAble.getInstance()); }