public void SwitchedPhase(GameplayPhase phase) { gameplayPhase = phase; switch (gameplayPhase) { //ova faza počinje kolizijom case GameplayPhase.Battle: GenerateStartingItems(); GenerateEnemy(); onBattlePhase.Invoke(); break; //ova faza počinje nakon kaj izađeš iz kampa ili kombata case GameplayPhase.Choosing: onChoosingPhase.Invoke(); GenerateEnemy(); break; //nakon kaj se ispune uvjeti za finish borbe case GameplayPhase.Camp: Camp(); break; case GameplayPhase.Loot: GenerateLootItems(); break; } }
public void pbEndBattle(BattleResults result) { if (OnBattlePhase != null) { OnBattlePhase.Invoke(this, new OnBattlePhaseEventArgs { Phase = 0 }); } }
public void pbBeginCommandPhase() { if (OnBattlePhase != null) { OnBattlePhase.Invoke(this, new OnBattlePhaseEventArgs { Phase = 0 }); } }