private void DestroySingletons() { TNT.DestroySingleton(); GameTimer.DestroySingleton(); Keypad.DestroySingleton(); KeypadPuzzle.DestroySingleton(); GameTimer.DestroySingleton(); Hints.DestroySingleton(); TextManager.DestroySingleton(); CommandConsole.DestroySingleton(); ThoughtsManager.DestroySingleton(); }
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."; }
public void Start() { puzzle = KeypadPuzzle.Instance; }
public void Awake() { puzzle = KeypadPuzzle.Instance; }
public static void DestroySingleton() { Instance = null; _instance = null; }
private void Awake() { _instance = this; }