상속: UnityEngine.MonoBehaviour
예제 #1
0
        void OnPlayerConnected()
        {
            //Debug.Log("Player Connected");
            actorSystem = gameObject.GetComponent<ActorSystem>() as ActorSystem;
            actorSystem.Activate(client);

            // Now create the actors
            StartCoreActors();

            connected = true;
            GameMachine.Login.userApp.ConnectionEstablished();
            if (!appStartedCalled) {
                appStarted();
                appStartedCalled = true;
                echosPerSecond = 0.20f;
                SetEchoInterval();
            }

            lastEchoReceived = Time.time;
            remoteEcho.Echo();
            InvokeRepeating("UpdateNetwork", 0.060f, gameTickInterval);
            if (showClientStats) {
                InvokeRepeating("UpdateStats", 1f, 1f);
            }
        }
예제 #2
0
		public void SetActorSystem (ActorSystem _actorSystem)
		{
			actorSystem = _actorSystem;
		}
예제 #3
0
 void Awake()
 {
     instance = this;
 }
예제 #4
0
 void Awake()
 {
     instance = this;
 }