コード例 #1
0
    // Messages:

    void Awake()
    {
        startAngle2 = door2.eulerAngles.y;
        if (location == DoorLocation.Store)
        {
            startAngle1   = door1.eulerAngles.y;
            storeInstance = this;
        }
        else if (location == DoorLocation.Home)
        {
            homeInstance = this;
        }
        StartSwish(location);
    }
コード例 #2
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();
     }
 }