// -------------------------------------
    // Events
    // When the object is create
    void Awake()
    {
        // Create the bezier manager and init it
        this.bmv = new BezierMovement();

        // Hold the rigid body
        this.rigidBody = this.GetComponent<Rigidbody2D>();
    }
Example #2
0
 private void OnEnable()
 {
     _bezierMovement = (BezierMovement)target;
     SetHelpboxText();
 }
 void Awake()
 {
     s_Instance = this;
 }