Пример #1
0
    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);
        }
    }
Пример #2
0
 void Awake()
 {
     instance       = this;
     numberOfAssess = 0;
 }