//Drop object public void Drop(AnimalCharacter animalCharacter) { MakeDynamic(); GetComponent <Rigidbody>().AddForce(animalCharacter.transform.forward * 10f); this.occupied = false; animalCharacter.bHoldObject = false; animalCharacter.holdObject = null; //Register affordance UIAffordance.RegisterObject(this.gameObject); }
public List <string> animalCharacterNames; //hold animal character names protected void AWake() { UIAffordance.RegisterObject(this.gameObject); }