// Start is called before the first frame update void Awake() { if (tutorialCanvas != null) { dimScreen = tutorialCanvas.GetComponentInChildren <DimScreen>(); SetTutorial(); } }
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>(); } }