void Start() { AssignTarget(); targetDistance = new EnemyTargetDistance(transform, target); Init(); if (target != null) { StartCoroutine(Think()); } }
void Awake() { physic = GetComponent <SlugPhysics>(); targetDistance = GetComponent <EnemyTargetDistance>(); SpeedFactor = 1.0f; }