/// <summary> /// Overridden. See <see cref="PActivity.OnActivityFinished">PActivity.OnActivityFinished</see>. /// </summary> protected override void OnActivityFinished() { PActivityScheduler scheduler = ActivityScheduler; base.OnActivityFinished(); RelativeTargetValue = 1; if (loopCount > 1) { if (loopCount != int.MaxValue) { loopCount--; } firstLoop = false; StartTime = scheduler.Root.GlobalTime; scheduler.AddActivity(this); } }
/// <summary> /// Constructs a new PRoot. /// </summary> /// <remarks> /// Note the PCanvas already creates a basic scene graph for you so usually you /// will not need to construct your own roots. /// </remarks> public PRoot() { inputSources = new ArrayList(); processScheduledInputsDelegate = new ProcessScheduledInputsDelegate(this.ProcessScheduledInputs); globalTime = PUtil.CurrentTimeMillis; activityScheduler = new PActivityScheduler(this); }