示例#1
0
    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");
        }
    }
示例#2
0
 void Start()
 {
     creditsCanvas.SetActive(false);
     optionsCanvas.SetActive(false);
     rotateObject = GameObject.Find("ShipHolder").GetComponent <RotateObjectMenu>();
 }