public static void DrawWithBrush() { GameObject go = Selection.activeGameObject; IMBrush brush = go.GetComponent <IMBrush>(); brush.Draw(); }
public void Attack(IMBrush brush) { this.audioSource.Play(); brush.Draw(); MeshCollider component = (MeshCollider)((Component)this.metaball).GetComponent <MeshCollider>(); if (!Object.op_Inequality((Object)component, (Object)null)) { return; } component.set_sharedMesh(this.metaball.Mesh); }
public void Attack(IMBrush brush /*, Vector3 position*/) { audioSource.Play(); brush.Draw(); MeshCollider mc = metaball.GetComponent <MeshCollider>(); if (mc != null) { mc.sharedMesh = metaball.Mesh; } // Instantiate(hitPS.gameObject, position, Quaternion.identity); }