コード例 #1
0
 void Update()
 {
     if (!player)
     {
         TryFindPlayer();
     }
     else
     {
         if (player.isPlayerTurn)
         {
             CanvasControls.SetCanvas(canvas, true);
         }
         else
         {
             CanvasControls.SetCanvas(canvas, false);
         }
     }
 }
コード例 #2
0
 private void Start()
 {
     canvas = GetComponent <CanvasGroup>();
     CanvasControls.SetCanvas(canvas, false);
 }