[SetUp] public void Init() { iCamera = GetCameraMock (); iCamera.Moved ().Returns (true); iCamera.NotNullLookTarget ().Returns (true); fCController = GetControllerMock (iCamera); }
void Start() { camController = Camera.main.GetComponent <FollowCameraController>(); if (GetComponent <CanvasGroup>() == null) { Debug.LogError("Cannot find component"); } canvasGroup = GetComponent <CanvasGroup>(); canvasGroup.interactable = false; canvasGroup.blocksRaycasts = false; canvasGroup.alpha = 0f; Time.timeScale = 1f; Cursor.visible = false; if (camController != null) { camController.disabled = false; } }