コード例 #1
0
    public virtual void OnInteractStart()
    {
        OnSuccessfulUse.Invoke();

        /* switch (InteractionType)
         * {
         *   case (ObjectInteractions.look):
         *       break;
         *   case (ObjectInteractions.take):
         *       //add item to inventory
         *       //hide
         *       break;
         *   case (ObjectInteractions.use):
         *   //OnFailedUse
         *       break;
         *   case (ObjectInteractions.leave):
         *       break;
         *   case (ObjectInteractions.drag):
         *
         *       break;
         *   default:
         *       //Debug.Log("Clicked!");
         *       break;
         * }*/
    }
コード例 #2
0
 public virtual void OnInteractStart(InteractionManager callback)
 {
     //if (InteractionType == ObjectInteractions.take)
     Debug.Log(InteractionType);
     OnSuccessfulUse.Invoke();
 }