Esempio n. 1
0
    //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);
    }
Esempio n. 2
0
    public List <string> animalCharacterNames; //hold animal character names

    protected void AWake()
    {
        UIAffordance.RegisterObject(this.gameObject);
    }