Пример #1
0
 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();
     }
 }
Пример #2
0
    // Messages:

    void Awake()
    {
        instance = this;
        enabled  = false;
    }