private bool OnPet(bool petted, float mag) { if (mag > petCutoff) { return(false); } if (HeartParticleObject == null) { return(false); } if (!readyToInteract) { return(false); } if (Gesture == null) { return(false); } if (!Gesture.IsPalmOpen()) { return(false); } if (petted) { CancelInjuring(); petTime = 0.0f; HeartParticleObject.SetActive(true); animalComponentRef.UpdateAggresionLevel(-0.05f); animalComponentRef.UpdateIntimateLevel(0.05f); return(true); } return(false); }