// Use this for initialization private void Awake() { Instance = this; _gUIManagerCanvasContainer = new UICanvasContainer(gameObject.GetComponent <CanvasGroup>(), gameObject.GetComponent <CanvasGroupController>()); _gUIManagerCanvasContainer.UpdateCanvasGroup(1, true, true); // fast dark in }
// Use this for initialization private void Start() { _uiCanvasContainer = new UICanvasContainer(gameObject.GetComponent <CanvasGroup>(), gameObject.GetComponent <CanvasGroupController>()); _uiCanvasContainer.UpdateCanvasGroup(0, true, true); // fast dark in // and _uiCanvasContainer.Fade(1, 0.05f, false); // slow dark out }