private void Awake()
 {
     if (IObjHandler != null)
     {
         Destroy(gameObject);
     }
     IObjHandler = this;
 }
예제 #2
0
파일: Dog.cs 프로젝트: Lumigra/Projects
    private void Start()
    {
        if (InteractableObjectsHandler.IObjHandler == null)
        {
            throw new UnityException("No Object List");
        }

        handler = InteractableObjectsHandler.IObjHandler;

        SetDestination();
    }