Exemple #1
0
 /// <summary>
 /// Creates the plugin object.
 /// </summary>
 public void initialize()
 {
     Logger.Log("Initializing XPGiver " + Version + "!");
     XpGiverObject  = new GameObject("XpGiverObject");
     XpGiverManager = XpGiverObject.AddComponent <Manager>();
 }
Exemple #2
0
 /// <summary>
 /// Tells the plugin object to delete itself.
 /// </summary>
 public void shutdown()
 {
     Logger.Log("Shutting down!");
     XpGiverManager.Shutdown();
 }
Exemple #3
0
 /// <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>();
 }