public void Interact(InteractionType type, Interactor actor) { DoorSwish.StartSwish(location); CameraController.SetAngle(-30, 40); actor.GetComponent <PlayerController>().Teleport(tpName, teleportTo.position, Vector3.zero); if (location == DoorSwish.DoorLocation.Store) { PresentMover.On(); GameStateManager.TryAddingCachiers(); StoreReferances.instance.storeTimerOn = true; } else { PresentMover.Off(); } }
// Messages: void Awake() { instance = this; enabled = false; }