コード例 #1
0
 //Overloaded method to go to this objects location.
 protected void GoToObjectLocation(Characters.Character owner)
 {
     owner.SetDestination(this.transform.position);             //send the character to the kitchen
 }
コード例 #2
0
        // void AnnounceInteractableObjects(Notification notification)
        // {
        //  NotificationCenter.DefaultCenter().PostNotification(this, "AnnounceInteractableObjects", ActionType);
        // }

        //Go to the object location. Define where to go and who should go there.
        protected void GoToObjectLocation(GameObject destination, Characters.Character owner)
        {
            Debug.Log("I am going to the " + destination);
            owner.SetDestination(destination.transform.position);             //send the character to the kitchen
        }