private NodeFollowAction action;    // Reference to the Node Follow Action
    #endregion

    void Start()
    {
        #region Get components
        nodeFollow = gameObject.GetComponent <NodeFollow>();
        action     = gameObject.GetComponent <NodeFollowAction>();
        #endregion
    }
Esempio n. 2
0
 void OnEnable()
 {
     #region The target for custom editor
     script = (NodeFollowAction)target;
     #endregion
 }