Exemplo n.º 1
0
 private void DestroySingletons()
 {
     TNT.DestroySingleton();
     GameTimer.DestroySingleton();
     Keypad.DestroySingleton();
     KeypadPuzzle.DestroySingleton();
     GameTimer.DestroySingleton();
     Hints.DestroySingleton();
     TextManager.DestroySingleton();
     CommandConsole.DestroySingleton();
     ThoughtsManager.DestroySingleton();
 }
Exemplo n.º 2
0
    public void activateShip()
    {
        enterButton.interactable             = false;
        resetButton.interactable             = false;
        statusLight.sprite                   = statusLightStates[1];
        CameraScript.Instance.wiresConnected = true;
        KeypadPuzzle _keypadPuzzle = KeypadPuzzle.Instance;

        for (int i = 0; i < _keypadPuzzle.keypadImages.Count; i++)
        {
            _keypadPuzzle.keypadImages[i].sprite = _keypadPuzzle.keypadSprites[0];
        }
        Hints hints = Hints.Instance;

        if (hints.sceneIndexer.index < 4)
        {
            hints.sceneIndexer.UpdateIndex(4);
            hints.sceneIndexer.UpdateHintText();
        }
        thoughts.sentence = "A set of connected electrical wires.";
        Keypad.Instance.thoughts.sentence = "Three keypads. They seem to be for inputting coordinates of some sort.";
    }
Exemplo n.º 3
0
 public void Start()
 {
     puzzle = KeypadPuzzle.Instance;
 }
Exemplo n.º 4
0
 public void Awake()
 {
     puzzle = KeypadPuzzle.Instance;
 }
Exemplo n.º 5
0
 public static void DestroySingleton()
 {
     Instance  = null;
     _instance = null;
 }
Exemplo n.º 6
0
 private void Awake()
 {
     _instance = this;
 }