Exemplo n.º 1
0
    protected override void onBegin()
    {
        RocketEvaluator rocketEvaluator = (RocketEvaluator)evaluator;

        closestDistance = Vector3.Distance(rocketEvaluator.getTestSubject().transform.position, waypoint.transform.position);
        rocketEvaluator.getTestSubject().setTarget(waypoint.transform.position);
        waypoint.activate(this, rocketEvaluator.getTestSubject().gameObject);
    }