Ejemplo n.º 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();
     }
 }
Ejemplo n.º 2
0
    // Messages:

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