void Start() { states = GetComponent <StateManager>(); states.Init(); cameraManager = CameraManger.singleton; cameraManager.Init(this.transform); }
// Use this for initialization void Start() { states = GetComponent <StateManager>(); states.Init(); camManager = CameraManager.singleton; camManager.Init(states); }
//----------------------------------------------------------------------- void Start() { states = GetComponent <StateManager> (); states.Init(); camManager = CameraManager.singleton; camManager.Init(states); uiManager = UIManager.singleton; dialogueManager = DialogueManager.singleton; Cursor.lockState = CursorLockMode.Locked; Cursor.visible = false; }