Example #1
0
 // Use this for initialization
 void Awake()
 {
     storage        = GameObject.Find("Storage").GetComponent <StorageBehavior>();
     gameController = GameObject.Find("GameController").GetComponent <GameController_Script>();
     mealTray       = GameObject.Find("MealTray").GetComponent <MealTrayBehavior>();
     moneyLoc       = new Vector3(-3.6f, 0, 20);
 }
Example #2
0
    }                                         //how much money to go from 1 to 2



// Use this for initialization
    void Start()
    {
        plotManager     = GameObject.Find("PlotManager").GetComponent <PlotManager_Script>();
        citizenManager  = GameObject.Find("CitizenManager").GetComponent <CitizenManager_Script>();
        storageBehavior = GameObject.Find("Storage").GetComponent <StorageBehavior>();

        modeCounter  = 0;
        currentMoney = 0;
        level        = 1;

        //creates the list of crops for the game to draw from
        //wanted it out of the way because it's a lot of lines
        CropsAndBuffs.GenerateCropList();
        CropsAndBuffs.GenerateBuffList();


        baseLevelUp = 80;
    }
Example #3
0
 // Use this for initialization
 void Awake()
 {
     //these two will never change because there is only 1 instance of them
     //gameController = GameObject.Find("GameController").GetComponent<GameController_Script>();
     storage = GameObject.Find("Storage").GetComponent<StorageBehavior>();
 }
Example #4
0
 public StorageBehaviorTests()
 {
     _session  = Substitute.For <IStorageSession>();
     _behavior = new StorageBehavior <Request, Response>(_session);
 }
Example #5
0
 // Use this for initialization
 void Awake()
 {
     //these two will never change because there is only 1 instance of them
     //gameController = GameObject.Find("GameController").GetComponent<GameController_Script>();
     storage = GameObject.Find("Storage").GetComponent <StorageBehavior>();
 }