Created
June 11, 2019 11:31
-
-
Save IshidaGames/7e71ae41810d9ce8dc59b487f4312263 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
//UI使うときに必要 | |
using UnityEngine.UI; | |
public class Choice : MonoBehaviour | |
{ | |
Button button; | |
void Start() | |
{ | |
button = GameObject.Find("Canvas/ButtonSummary/Button").GetComponent<Button>(); | |
//ボタンが選択された状態になる | |
button.Select(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment