private string characterName; // Fields for the player name. // Initialization boilerplate stuff void Start() { nameField.onEndEdit.AddListener((string arg) => NameUpdated(arg)); namePlaceholder.text = Stats.PlayerName; playButton.onClick.AddListener(ChangeScene); controlsButton.onClick.AddListener(ToggleControls); controlsScreenButton.onClick.AddListener(ToggleControls); characterName = Stats.PlayerName; // Catalog and hide the Controls page controls.Hide(); // Set default filepath for log file logField = GameObject.Find("LogText").GetComponent <Text>(); Text logPlaceholder = logField.transform.parent.Find("Placeholder").GetComponent <Text>(); logPlaceholder.text = Logger.DEFAULT_FILENAME; GameObject.Find("OutputField").SetActive(false); logToggle = GameObject.Find("LoggingToggle").GetComponent <Toggle> (); logToggle.isOn = false; }
private void Start() { AssignViewEvents(); mainMenu.Hide(); mainMenu.SelfFadeIn(); waves.amplitude = 15; waves.frequency = 15; waves.gameObject.SetActive(false); ObjectPooler.instance.DisableAllTagged("WaveBar"); }
// Use this for initialization void Awake() { PauseEvent = Pause; StartText = BeginText; EndText = FinishText; leftCharacterPortraits = GetChildren(leftCharacters); rightCharacterPortraits = GetChildren(rightCharacters); textOverlay.Hide(); overlay.Hide(); question.Hide(); foreach (FadeableUI f in leftCharacters) { f.Hide(); } foreach (FadeableUI f in rightCharacters) { f.Hide(); } }
void Start() { description.Hide(); }