void Start() { inputFiled.SetActive(false); nameInstructions.SetActive(false); input = inputFiled.GetComponent <InputField>(); input.onValueChanged.AddListener(delegate { ValueChangeCheck(); }); rotateObject = GameObject.Find("ShipHolder").GetComponent <RotateObjectMenu>(); if (!PlayerPrefs.HasKey("PlayerName")) { storedName = "Choose Your name"; } else { storedName = PlayerPrefs.GetString("PlayerName"); } }
void Start() { creditsCanvas.SetActive(false); optionsCanvas.SetActive(false); rotateObject = GameObject.Find("ShipHolder").GetComponent <RotateObjectMenu>(); }