void Update() { if (!player) { TryFindPlayer(); } else { if (player.isPlayerTurn) { CanvasControls.SetCanvas(canvas, true); } else { CanvasControls.SetCanvas(canvas, false); } } }
private void Start() { canvas = GetComponent <CanvasGroup>(); CanvasControls.SetCanvas(canvas, false); }