void OnSceneManagerEvent_SceneChanged(Scene s1, Scene s2)
        {
            string msg = "OnSceneChanged";
            var    arg = new SceneChangedInfo(s1, s2);

            //	this.gameObject.BroadcastMessageNoExceptions (msg, arg);

            Utilities.Utilities.SendMessageToAllMonoBehaviours(msg, arg);
        }
 private void OnSceneChanged(SceneChangedInfo info)
 {
     if (TeamManager.FFA)
     {
         if (this.spawnPlayerWhenSceneChanges)
         {
             PlayingObjectSpawner.MarkPlayerForSpawning(this.GetComponent <Player> ());
         }
     }
 }
Пример #3
0
        void OnSceneChanged(SceneChangedInfo info)
        {
            if (!NetworkStatus.IsServer())
            {
                return;
            }

            if (this.resetTeamOnSceneChange)
            {
                m_team                        = "";
                m_isSpectator                 = true;
                m_shouldChooseTeam            = false;
                m_shouldSendChooseTeamMessage = false;

                this.OfferPlayerToChooseTeam();
            }
        }
Пример #4
0
        void OnSceneChanged(SceneChangedInfo info)
        {
            if (!this.isServer)
            {
                return;
            }

            //	this.health = 100 ;

//			if ( this.IsLoggedIn() ) {
//
//				if (this.IsBot ()) {
//					this.status = PlayerStatus.ShouldBeSpawnedInNextRound;
//				} else {
//					this.status = PlayerStatus.WaitingToChooseTeam;
//				}
//			}
        }
Пример #5
0
 void OnSceneChanged(SceneChangedInfo info)
 {
     m_playersMarkedForSpawning.Clear();
 }
Пример #6
0
 private void    OnSceneChanged(SceneChangedInfo info)
 {
     isLoadingScene = false;
 }
 void OnSceneChanged(SceneChangedInfo info)
 {
     PlayingObjectSpawner.MarkPlayerForSpawning(this.GetComponent <Player> ());
 }