public override void Activity(bool firstTimeCalled) { if (!IsPaused) { PlayerInstance.Activity(); } else { } base.Activity(firstTimeCalled); if (!IsActivityFinished) { CustomActivity(firstTimeCalled); } }
public override void Activity(bool firstTimeCalled) { if (!IsPaused) { PlayerInstance.Activity(); for (int i = PositionedObjectListInstance.Count - 1; i > -1; i--) { if (i < PositionedObjectListInstance.Count) { // We do the extra if-check because activity could destroy any number of entities PositionedObjectListInstance[i].Activity(); } } } else { } base.Activity(firstTimeCalled); if (!IsActivityFinished) { CustomActivity(firstTimeCalled); } }