示例#1
0
 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);
 }
示例#2
0
        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;
 }
示例#5
0
 public static void EndGame(ActorFilter.ActorType wonActorType)
 {
     photonView.RPC("PhotonEventSender_EndGame", PhotonTargets.All, (int)wonActorType);
 }