예제 #1
0
        // 4. Override "GetNewTaskData"
        // Create a 'blank state' on the given goose. Called just before the Task begins running.
        public override GooseTaskData GetNewTaskData(GooseEntity goose)
        {
            CheckWindowTaskData taskData = new CheckWindowTaskData();

            taskData.timeStarted = Time.time;
            return(taskData);
        }
예제 #2
0
        // 4. Override "RunTask"
        // Run a frame of this Task on the given goose.
        public override void RunTask(GooseEntity goose)
        {
            // This function is only called when we're the currently running task.
            // The goose's taskData will be of this task's type.
            CheckWindowTaskData data = (CheckWindowTaskData)goose.currentTaskData;

            /*goose.currentTaskData.activeWindow = GetActiveWindow();*/
        }