Esempio n. 1
0
    protected virtual void Action()
    {
        int currentPointValue = getIDfromPoint(CameraNavigator.focusPoint);

        if(pendingWork!=null)
        {
            pendingWork.PendingAction(CameraNavigator.focusPoint,currentPointValue);
        }
        else
        {
            if(workType != null)
            {
               // DebugOutput.Shout("Want to create work " + workType.Description);
                pendingWork = ((Work)Activator.CreateInstance(Type.GetType(workType.className)));
                pendingWork.Construct(CameraNavigator.focusPoint, currentPointValue,workType);
            }

        }
    }