Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- using Sirenix.OdinInspector;
- // This class is currently essentially an abstract class, however abstract classes don't work properly with OdinInspector properties
- public class Grabbable : MonoBehaviour
- {
- public GrabPriority priorityLevel = GrabPriority.Decoration;
- [Tooltip("The grabbable will be treated as if this position is its center.")]
- [Required, SceneObjectsOnly]
- public Transform location;
- [HideInInspector]
- public Grabber grabbedBy = null;
- public virtual void Grabbed(Grabber grabber){
- }
- public virtual void Ungrabbed(Grabber grabber){
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment