예제 #1
0
    protected override void Follow()
    {
        Vector3 auxDistancePoint = DistancePoint;

        auxDistancePoint.x = 0;

        transform.position = TargetObject.GetTransform().position + auxDistancePoint;
    }
예제 #2
0
    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;
    }
예제 #3
0
 private void LootAt()
 {
     transform.LookAt(TargetObject.GetTransform().position);
 }