private void Start() { MouseCursorController = FindObjectOfType <MouseCursorController>(); Physics.queriesHitTriggers = false; IsActionActive = true; Initialize(); }
void Init() { sceneJumps = 0; sceneC = GetComponent <SceneController>(); dataM = GetComponent <DataManager>(); GetComponent <DataManager>().LoadData(); mouseCursorC = GetComponent <MouseCursorController>(); mouseCursorC.ChangeCursor(mouseCursorC.normalCursor); }
void Awake() { // Makes the current instance a static one. if (instance == null) { instance = this; } else if (instance != this) { Destroy(gameObject); } // DontDestroyOnLoad(gameObject); }
private void ShowHideMenu(bool show) { isShown = show; animator.SetBool(Strings.Show, show); if (show) { gameController.SetInputEnabled(false); MouseCursorController.UnlockCursor(); MouseCursorController.SetCursorVisibility(true); } else { gameController.SetInputEnabled(true); MouseCursorController.LockCursor(); MouseCursorController.SetCursorVisibility(false); } }
void OnMouseExit() { // Set cursor image to the arrow image. MouseCursorController.setCursorToDefault(); }
void OnMouseEnter() { // Set cursor image to the camera image. MouseCursorController.setCursorToCamera(); }
private void Awake() { SceneLoader = FindObjectOfType <SceneLoader>(); SetParticleParent(); CursorCtrl = FindObjectOfType <MouseCursorController>(); }
void Start() { Jay = Camera.main.fieldOfView; status = FindObjectOfType <GameSetting>(); cursorController = FindObjectOfType <MouseCursorController>(); }
void Start() { Status = FindObjectOfType <GameSetting>(); cursorController = FindObjectOfType <MouseCursorController>(); }
private void Awake() { mouseCursor = Systems.UI.mouseCursor; root = Systems.UI.rootCanvas; }