Ejemplo n.º 1
0
    void LoadBattleEnviornments()
    {
        BattleEnviornment temp = new BattleEnviornment("testDustyPlain");

        EnviornmentLibrary._battleEnviornments.Add(temp._name, temp);

        temp = new BattleEnviornment("testGrassyPlain");
        EnviornmentLibrary._battleEnviornments.Add(temp._name, temp);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     _battleEnv = EnviornmentLibrary._battleEnviornments[GameState._currentBattleEnviornment];
     _battleGround.GetComponent <SpriteRenderer>().sprite = _battleEnv._groundTexture;
 }