コード例 #1
0
 private void InitializeVariables()
 {
     lockscript   = GetComponent <LockInteract>();
     interact     = GetComponent <InteractCamSwitch>();
     secondCamera = interact.lerpingCamera;
     glitch       = secondCamera.GetComponent <GlitchyEffect>();
 }
コード例 #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>();
 }
コード例 #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>();
 }