예제 #1
0
    IEnumerator Wait()
    {
        print("Waiting");
        yield return(new WaitForSeconds(3));

        UISelect.SetActive(true);
    }
예제 #2
0
    private void OnMouseDown()
    {
        UISelect select = GetComponentInParent <UISelect>();

        if (!select)
        {
            Debug.LogError("Option is not parented to a select element");
            return;
        }

        select.Set(this);
    }
예제 #3
0
 void Start()
 {
     _UISelect = GameObject.FindGameObjectWithTag("UISelect").GetComponent <UISelect>();
 }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     _Character    = GameObject.FindGameObjectWithTag("Player").GetComponent <Character>();
     _UIController = GameObject.FindGameObjectWithTag("UIController").GetComponent <UIController>();
     _UISelect     = GameObject.FindGameObjectWithTag("UISelect").GetComponent <UISelect>();
 }
예제 #5
0
 // Update chosen color
 public void SetColor(UISelect select)
 {
     color = (Player.PlayerColor)select.value;
 }