Ejemplo n.º 1
0
    int hash = "ClusterControl".GetHashCode();                  //hash used to keep the focus on the current object

    /// <summary>
    /// Editing state, changed with buttons
    /// </summary>
    void OnEnable()
    {
        clusterobject = (WaypointCluster)target;
    }
Ejemplo n.º 2
0
    /**************************EDITOR FUNCTIONS***********************************/

    /** Sets the WaypointCluster object this waypoint pertains to */
    public void setParent(WaypointCluster wc)
    {
        parent = wc;
    }
Ejemplo n.º 3
0
    int hash = "ClusterControl".GetHashCode(); //hash used to keep the focus on the current object

    void OnEnable()
    {
        clusterobject = (WaypointCluster)target;
        plane         = new Plane(new Vector3(0, 0, 0), new Vector3(0, 1, 0), new Vector3(1, 0, 0));
    }