settarget method

void settarget(
  1. Vector2 targetpos
)

Implementation

void settarget(Vector2 targetpos){

  targetposition = targetpos;
}