public void Execute(RobotEntity entity) { entity.MoveForward(); if (Vector3.Distance(startPos, entity.transform.position) >= distance) { entity.SetExecuter(ParseExecuter.instance); } }
public void Execute(RobotEntity owner) { owner.MoveForward(); remainingTime -= Time.deltaTime; if (remainingTime < 0) { owner.SetExecuter(ParseExecuter.instance); } }