void Initialise() { parentNode = transform.parent; parentLayout = parentNode.gameObject.GetComponent<UIFade>(); parentLayout.FadeTrigger (true); }
// Use this for initialization void Start() { instance = this; DontDestroyOnLoad(gameObject); }
// Use this for initialization void Start() { instance = this; }
void Start() { instance = this; fade = GetComponent <Image>(); FadeOut(0.3f); }
private void OnPlayerInteractEnd() { //endEntered = true; StartCoroutine(UIFade.FadeCanvas(endScreen, 0f, 1f, END_ANIM_DUR, 0f)); Invoke(nameof(DisableCharacterMovement), 0f); }