public async Task ReturnToBaseAsync() { attackStarted.Raise(); var baseDescription = await playerBaseProvider.GetPlayerBase(playerData.Id, false); await Scenes.UnloadScenes(); await Scenes.LoadPlayerScene(); currentGameState.Value = defaultState; await baseBuilder.BuildBase(baseDescription); attackFinished.Raise(); }
public async Task AttackAsync() { attackStarted.Raise(); var targetId = await targetProvider.GetAttackTargetId(); var baseDescription = await enemyBaseProvider.GetPlayerBase(targetId, true); await Scenes.UnloadScenes(); await Scenes.LoadAttackScene(); currentGameState.Value = attackState; await baseBuilder.BuildBase(baseDescription); attackFinished.Raise(); }