Exemplo n.º 1
0
    private void recalculateTarget()
    {
        GameObject target = Targeting.FindNearestTarget(this.transform.position);

        if (target != null)
        {
            this.target = target.transform;
        }
    }