private void Awake() { // Create the collider when the cutter creates the mesh. cutter = GetComponent <MeshCutterAsync>(); cutter.Cut += CreateGrabbbable; cutterSelection = GetComponent <MeshCutter_Selection>(); }
private void Awake() { cutter = GetComponent <MeshCutterAsync>(); // Validate selection when the GOCreator is done. creator = GetComponent <GameobjectCreator>(); creator.Creating += OnCreationStarting; creator.Created += OnCreationComplete; invertedHighlightColor = new Color(1 - initHighlightColor.r, 1 - initHighlightColor.g, 1 - initHighlightColor.b); }