private int GetActorNumber(ActorFilter.ActorType actorType) { return(Engine.ActorFilter.GetActors(new ActorFilter.FilteCondition() { filteBy = ActorFilter.FilteBy.Type, actorType = actorType, compareCondition = ActorFilter.CompareCondition.Is, value = 0f }).Count); }
public void SyncGameOver(ActorFilter.ActorType wonActorType) { if (PhotonNetwork.isMasterClient) { return; } if (wonActorType == m_currentNewGameSetting.startAs) { ((GameCommonUIPage)GetViews <GameCommonUIPage>()[0]).ShowGameOverMenu("You Win", OnGameEnded); } else { ((GameCommonUIPage)GetViews <GameCommonUIPage>()[0]).ShowGameOverMenu("You Lose", OnGameEnded); } }
public GameOverCondition_AllActorDied(ActorFilter.ActorType startAs) { m_playAs = startAs; }
public void SetData(ActorFilter.ActorType target) { m_targetType = target; }
public static void EndGame(ActorFilter.ActorType wonActorType) { photonView.RPC("PhotonEventSender_EndGame", PhotonTargets.All, (int)wonActorType); }