public override void OnInspectorGUI() { base.OnInspectorGUI(); WayPointsPathBuilder builder = (WayPointsPathBuilder)target; if (GUILayout.Button("Create")) { builder.CreateWaypoint(); } if (GUILayout.Button("Delete")) { builder.DeletePonit(); } }
private void Awake() { _waypointsBuilder = GetComponent <WayPointsPathBuilder>(); }