IEnumerator Wait() { print("Waiting"); yield return(new WaitForSeconds(3)); UISelect.SetActive(true); }
private void OnMouseDown() { UISelect select = GetComponentInParent <UISelect>(); if (!select) { Debug.LogError("Option is not parented to a select element"); return; } select.Set(this); }
void Start() { _UISelect = GameObject.FindGameObjectWithTag("UISelect").GetComponent <UISelect>(); }
// Use this for initialization void Start() { _Character = GameObject.FindGameObjectWithTag("Player").GetComponent <Character>(); _UIController = GameObject.FindGameObjectWithTag("UIController").GetComponent <UIController>(); _UISelect = GameObject.FindGameObjectWithTag("UISelect").GetComponent <UISelect>(); }
// Update chosen color public void SetColor(UISelect select) { color = (Player.PlayerColor)select.value; }