Class BasicFollow

Inheritance Relationships

Base Type

  • public MonoBehaviour

Class Documentation

class BasicFollow : public MonoBehaviour

Sample script to follow a target.

Public Members

Transform target

Target object

int minDist = 2

Minimal distance to move to the target

int speed = 3

Speed player