public void PuzzleComplete(GameObject obj) { CurrentMiniGame = obj.GetComponent <MiniGameTracker>(); RootMap.SetActive(true); UIManager.GetInstance().InventoryObject.SetActive(true); obj.GetComponent <MiniGameTracker>().IsPuzzleComplete = true; SetVisibleSmoke(true); CurrentMiniGame.Lighting.SetActive(false); CurrentMiniGame = obj.GetComponent <MiniGameTracker>(); //GameManagement.GetInstance().MainCollisionActive(false); CameraPlayer.SetStateCamera(Quaternion.Euler(CurrentMiniGame.CameraPosition)); CameraPlayer.SetTargetCamera(obj.GetComponent <MiniGameTracker>().TrckerCamera.transform); UIManager.GetInstance().SetVisibleFindItemBar(true); VisibleBackButton(false); CurrentMiniGame.Lighting.SetActive(true); if (CurrentMiniGame.IsComplete == false) { FindItemManager.GetInstance().SetListFindItem(CurrentMiniGame.ListFindItems); } }
void Awake() { instance = this; numberOfAssess = 0; }