Пример #1
0
    public static ThorAble createInstance(Task.Callback c)
    {
        if (instance == null)
        {
            instance = new ThorAble(c);
        }

        return(instance);
    }
Пример #2
0
    //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;
    }
Пример #3
0
 private void initTasks()
 {
     tasks = new List <Task>();
     tasks.Add(JamesVanAllen.getInstance());
     tasks.Add(ThorAble.getInstance());
 }