コード例 #1
0
	void Start ()
	{
		System.Random rand = new System.Random();
		NameInputField.GetComponent<InputField>().text = "Player_" + rand.Next(9999);
		Instance = this;

		MainMenu.SetActive ( true );

//		for ( int i = 0; i < this.MainMenu.transform.childCount; i++ )
//			this.MainMenu.transform.GetChild ( i ).gameObject.SetActive ( true );

		ConnectMenu.SetActive ( false );
		
		DontDestroyOnLoad ( gameObject );
	}
コード例 #2
0
    void Start()
    {
        Instance = this;

        MainMenu.SetActive(true);

//		for ( int i = 0; i < this.MainMenu.transform.childCount; i++ )
//			this.MainMenu.transform.GetChild ( i ).gameObject.SetActive ( true );

        HostMenu.SetActive(false);

        ConnectMenu.SetActive(false);

        DontDestroyOnLoad(gameObject);
    }