/// <summary> /// Creates the plugin object. /// </summary> public void initialize() { Logger.Log("Initializing XPGiver " + Version + "!"); XpGiverObject = new GameObject("XpGiverObject"); XpGiverManager = XpGiverObject.AddComponent <Manager>(); }
/// <summary> /// Tells the plugin object to delete itself. /// </summary> public void shutdown() { Logger.Log("Shutting down!"); XpGiverManager.Shutdown(); }
/// <summary> /// Disables destruction on load for the plugin object and adds the important bits to it as components. /// </summary> public void Start() { Logger.Log("Starting Experience Giver!"); DontDestroyOnLoad(Main.XpGiverObject); Main.XpGiverObject.AddComponent <ExperienceGiver>(); }