Created
October 5, 2019 11:59
-
-
Save andybak/e8a05cce9a76090a14ba06fd8f53a274 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public static class C | |
{ | |
public static Camera Cam | |
{ | |
get { return Camera.main;} | |
} | |
public static Vector3 CamPos | |
{ | |
get { return Cam.transform.position;} | |
set { CamPos = value;} | |
} | |
public static void MoveCam(float x, float y, float z) | |
{ | |
CamPos = CamPos + new Vector3(x, y, z); | |
} | |
public static float TimeScale | |
{ | |
get { return Time.timeScale; } | |
set { Time.timeScale = value; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment