コード例 #1
0
 private void Start()
 {
     if (UICanvas != null)
     {
         UIController = UICanvas.GetComponent <ControllerProgress>();
     }
     else
     {
         print("Missing UI Canvas");
     }
 }
コード例 #2
0
ファイル: TimeController.cs プロジェクト: Fonstw96/FakeNews
    private void Start()
    {
        texClock = GetComponent <Text>();

        if (goUICanvas != null)
        {
            GameController = goUICanvas.GetComponent <ControllerProgress>();
        }
        else
        {
            print("No UI Canvas attached!");
        }

        audioSource = GetComponent <AudioSource>();
    }