示例#1
0
        private static void Update()
        {
            if (!initializedMainPlayer)
            {
                if (AddVRController(LocalUserManager.GetRewiredMainPlayer()))
                {
                    initializedMainPlayer = true;
                }
            }

            LocalUser localUser = LocalUserManager.GetFirstLocalUser();

            if (localUser != null)
            {
                if (AddVRController(localUser.inputPlayer))
                {
                    initializedLocalUser      = true;
                    RoR2Application.onUpdate -= Update;
                }
            }
        }