private void Awake() { if (IObjHandler != null) { Destroy(gameObject); } IObjHandler = this; }
private void Start() { if (InteractableObjectsHandler.IObjHandler == null) { throw new UnityException("No Object List"); } handler = InteractableObjectsHandler.IObjHandler; SetDestination(); }