Example #1
0
    // Use this for initialization
    void Start()
    {
        currentlyPlayingPlayer = Player.singleton;
        gameWorld  = GameWorld.singleton;
        objectPool = spawnObjectPool();
        pausePanel = GameObject.Find("Pause Panel").GetComponent <AreYouSurePanel>();
        missionAccomplishedPanel = GameObject.Find("Mission Accomplished Panel").GetComponent <MissionAccomplishedPanel>();
        GameObject failedPanelObject = GameObject.Find("Mission Failed Panel");

        if (failedPanelObject)
        {
            missionFailedPanel = failedPanelObject.GetComponent <MissionFailedPanel>();
        }
        for (int i = 0; i < levelInteractables.Count; i++)
        {
            levelInteractables[i] = objectPool.registerObject <Interactable>(levelInteractables[i]);
        }
    }
 public void ToggleAreYouSurePanel(bool active)
 {
     AreYouSurePanel.SetActive(active);
 }
Example #3
0
 private void Awake()
 {
     Instance = this;
 }