void Start() { keyBindScript = masterObject.GetComponent <KeyBindScript>(); if (lockCursor) { Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; } }
private void Awake() { if (keybindControl == null) { DontDestroyOnLoad(gameObject); keybindControl = this; } else if (keybindControl != this) { Destroy(gameObject); } }