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> ());
         }
     }
 }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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;
//				}
//			}
        }
Exemplo n.º 5
0
 void OnSceneChanged(SceneChangedInfo info)
 {
     m_playersMarkedForSpawning.Clear();
 }
Exemplo n.º 6
0
 private void    OnSceneChanged(SceneChangedInfo info)
 {
     isLoadingScene = false;
 }
 void OnSceneChanged(SceneChangedInfo info)
 {
     PlayingObjectSpawner.MarkPlayerForSpawning(this.GetComponent <Player> ());
 }