protected override void Follow() { Vector3 auxDistancePoint = DistancePoint; auxDistancePoint.x = 0; transform.position = TargetObject.GetTransform().position + auxDistancePoint; }
protected override void Follow() { //Vector3 distancePoint = TargetObject.GetTransform().position; //distancePoint.y = Mathf.Abs(distance); Vector3 distancePoint = TargetObject.GetTransform().position + new Vector3(0, 70, 0); //distancePoint.y = transform.position.y; transform.position = distancePoint; }
private void LootAt() { transform.LookAt(TargetObject.GetTransform().position); }