Exemple #1
0
 private static bool NoKickUser(ref string __0, ref Player __4)
 {
     if (__0 == APIUser.CurrentUser.id)
     {
         MiscReflections.GetUiManagerInstance().QueueHudMessage(__4.ToString() + " tried to kick you.");
     }
     return(false);
 }
Exemple #2
0
        public void Update()
        {
            UserCameraController cam = UserCameraController.Instance;

            if (Event.current.shift && Input.GetKeyDown(KeyCode.I))
            {
                if (isCameraActive())
                {
                    cam.transform.localRotation = Quaternion.identity; //Reset to fix rotation "bug"
                    cam.transform.localPosition = Vector3.zero;        //Reset to fix rotation "bug"
                    MiscReflections.SetCameraMode(0);
                    return;
                }
            }
            if (isCameraActive())
            {
                if (Input.GetKey(KeyCode.UpArrow))
                {
                    cam.transform.Translate(Vector3.forward * (Time.deltaTime * movSpeed), Space.Self);
                }

                if (Input.GetKey(KeyCode.DownArrow))
                {
                    cam.transform.Translate(Vector3.back * (Time.deltaTime * movSpeed), Space.Self);
                }

                if (Input.GetKey(KeyCode.LeftArrow))
                {
                    cam.transform.Rotate(0f, 10f * (Time.deltaTime * (-rotSpeed)), 0f);
                }

                if (Input.GetKey(KeyCode.RightArrow))
                {
                    cam.transform.Rotate(0f, 10f * (Time.deltaTime * rotSpeed), 0f);
                }

                if (Input.GetKey(KeyCode.E))
                {
                    cam.transform.Translate(Vector3.up * (Time.deltaTime * movSpeed));
                }

                if (Input.GetKey(KeyCode.Q))
                {
                    cam.transform.Translate(Vector3.down * (Time.deltaTime * movSpeed));
                }
            }
        }
Exemple #3
0
 private static bool isCameraActive() => MiscReflections.GetCameraMode() != 0;