public override bool ApplyOperation() { if (base.ApplyOperation()) { DeformableMesh deformationScript = objectTransform.GetComponent <DeformableMesh>(); if (deformationScript != null) { deformationScript.Deform(impactVector, simplifiedVector); return(true); } } return(false); }
public void RpcOnDeform(Vector3 impactVector, Vector3 simplifiedVector) { DeformableMesh deformableMesh = GetComponent <DeformableMesh>(); deformableMesh.Deform(impactVector, simplifiedVector); }