public void Enemy_Is_Next() { BattleEnemyState enemyState = new BattleEnemyState(); testBattleEnemy1 = new GameObject("testBattleEnemy1"); testBattleEnemy1.AddComponent <CharacterStats>(); testBattleEnemy1.GetComponent <CharacterStats>().characterDefinition = ScriptableObject.CreateInstance <CharacterStats_SO>(); testBattleEnemy1.GetComponent <CharacterStats>().characterDefinition.Enemy = true; _battleSystem.charactersInBattle.Add(testBattleEnemy1); //_battleSystem.WhosNext(); Assert.AreEqual(_battleSystem.CurrentState, enemyState); }
public void BeforeEveryTest() { _battleSystem = new GameObject().AddComponent <BattleSystem>(); _battleSystem.statusText = new GameObject().AddComponent <Text>(); GameManger.gameManger = new GameObject().AddComponent <GameManger>(); GameManger.gameManger.areaData = new GameManger.AreaData(); GameManger.gameManger.party = new GameManger.PartyData(); testBattleHero1 = new GameObject("testBattleHero1"); GameManger.gameManger.party.PlayerParty.Add(testBattleHero1); BattleStartState startState = new BattleStartState(); BattleEnemyState enemyState = new BattleEnemyState(); BattlePlayerState playerState = new BattlePlayerState(); }