示例#1
0
 void Start()
 {
     playerPropsController = GameObject.Find("NetworkMessages").GetComponent <NetworkPlayerProperties>();
     tweenOutPos           = new Vector3(-1250f, 0f, 1.7f);
     StateMachine.SetCurrentState(MainMenu.Instance);
     StateMachine.ChangeState(LoginMenu.Instance);
     appController = GameObject.Find("AppController").GetComponent <AppController>();
 }
示例#2
0
 void Start()
 {
     DontDestroyOnLoad(this.gameObject);
     instance             = this;
     photonView           = GetComponent <PhotonView>();
     playerPropController = GetComponent <NetworkPlayerProperties>();
     if (!PhotonNetwork.connected)
     {
         PhotonNetwork.ConnectUsingSettings("1.0");
     }
 }