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>(); }
void Start() { DontDestroyOnLoad(this.gameObject); instance = this; photonView = GetComponent <PhotonView>(); playerPropController = GetComponent <NetworkPlayerProperties>(); if (!PhotonNetwork.connected) { PhotonNetwork.ConnectUsingSettings("1.0"); } }