コード例 #1
0
 // Start is called before the first frame update
 void Awake()
 {
     if (tutorialCanvas != null)
     {
         dimScreen = tutorialCanvas.GetComponentInChildren <DimScreen>();
         SetTutorial();
     }
 }
コード例 #2
0
    protected virtual void Awake()
    {
        instance = this;
        rt       = transform as RectTransform;
        cg       = GetComponent <CanvasGroup>();
        GameObject topUI = GameObject.FindGameObjectWithTag("TopUI");

        if (topUI != null)
        {
            topCanvas = topUI.GetComponent <Canvas>();
        }
    }