Пример #1
0
 public IEnumerator FinishEating(Transform _shit)
 {
     _shit.GetComponent <Rigidbody>().useGravity = true;
     _shit.parent = null;
     myFood.DigestTheFood();
     Destroy(_shit.gameObject, duration / 3);
     yield return(null);
 }
Пример #2
0
    public IEnumerator FinishEating(Transform _obj, Vector3 _foodSize)
    {
        //_obj.GetComponent<Rigidbody>().useGravity = true;
        _obj.parent = null;
        myFood.DigestTheFood();
        isChanging = false;

        //Destroy(_obj.gameObject);
        //_obj.gameObject.enabled = false;
        resetShroom(_obj.gameObject, _foodSize);
        small = true;
        yield return(null);
    }