/// <summary> /// Called when the game session has started. /// </summary> public virtual GameBase StartSession(TextAsset sessionFile) { // Create and load a SessionData object to give to the active game. sessionData = new SessionData(); if (XMLUtil.LoadSessionData(sessionFile, ref sessionData)) { GUILog.Log("Game {0} starting Session {1}", this.gameObject.name, sessionFile.name); OnStart(); } else { GUILog.Error("Game {0} failed to load session file {1}", this.gameObject.name, sessionFile.name); } return(this); }