コード例 #1
0
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();


        WayPointsPathBuilder builder = (WayPointsPathBuilder)target;

        if (GUILayout.Button("Create"))
        {
            builder.CreateWaypoint();
        }

        if (GUILayout.Button("Delete"))
        {
            builder.DeletePonit();
        }
    }
コード例 #2
0
 private void Awake()
 {
     _waypointsBuilder = GetComponent <WayPointsPathBuilder>();
 }