public void SwitchActivities(IActivity newActivity) { currentActivity.Unload(); currentActivity = newActivity; currentActivity.Initalize(); currentActivity.LoadContent(); }
public ActivityManager(IActivity StartupActivity) { currentActivity = StartupActivity; currentActivity.Initalize(); }