private void InitializeVariables() { lockscript = GetComponent <LockInteract>(); interact = GetComponent <InteractCamSwitch>(); secondCamera = interact.lerpingCamera; glitch = secondCamera.GetComponent <GlitchyEffect>(); }
private void Awake() { hasScenePlayed = false; interactedCamera = Lock.GetComponent <InteractCamSwitch>(); lockScript = Lock.GetComponent <LockInteract>(); crowd.SetActive(false); normaRunningAnimation.SetActive(false); normaCrying.SetActive(false); teleportingDoor.SetActive(false); lockinteractScript = Lock.GetComponent <LockInteract>(); }
/// <summary> /// Initializes each variable that depend on the lockInteraction, RotateWorld, Interact and Glitch Effect /// </summary> private void InitilializeReferences() { interactingwith = GetComponent <InteractCamSwitch>(); rotate = GetComponent <RotateWorld>(); interact = GetComponent <LockInteract>(); }