public void setUp()
 {
     Fi.startEngine();
     pokemonFactory       = new PokemonFactory();
     calculations         = new BattleCalculations();
     pokemonBattleManager = new PokemonBattleManager();
 }
Example #2
0
        public void start()
        {
            itemDelegates  = new Dictionary <int, ItemDelegate>();
            moves          = new Dictionary <int, MoveDelegate>();
            pokemonManager = new PokemonBattleManager();

            loadItemDelegates();
            loadMoveDelegates();
        }
        private void Awake()
        {
            _battleManager = PokemonBattleManager.Instance;
            _eventSystem   = EventSystem.current;

            if (_informationObject == null)
            {
                var informationUI = PokemonBattleManager.Instance._uiManager._mainUI._informationUI;
                _informationObject = informationUI;
            }
        }
Example #4
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }