Exemplo n.º 1
0
 private void Awake()
 {
     enemy         = GetComponent <EnemyController>();
     attackManager = GetComponent <MonsterAttackManager>();
     monAttacks    = GetComponent <MonsterAttacks>();
     baseStats     = GetComponent <BaseStats>();
     health        = GetComponent <Health>();
     fighter       = GetComponent <Fighter>();
 }
Exemplo n.º 2
0
 public BattleService(DataContext dataContext, MonsterAttacks monsterAttacks, PlayerAttacks playerAttacks)
 {
     _dataContext    = dataContext;
     _monsterAttacks = monsterAttacks;
     _playerAttacks  = playerAttacks;
 }