Ejemplo n.º 1
0
 private void InitializeVariables()
 {
     lockscript   = GetComponent <LockInteract>();
     interact     = GetComponent <InteractCamSwitch>();
     secondCamera = interact.lerpingCamera;
     glitch       = secondCamera.GetComponent <GlitchyEffect>();
 }
Ejemplo n.º 2
0
 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>();
 }
Ejemplo n.º 3
0
 /// <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>();
 }