Ramaraunt1

Untitled

Dec 22nd, 2016
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  5. // ABOUT //
  6. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  7. /*
  8. * This file is a MissionTemplate Template (of the reduntant department of redundancy :D). MissionTemplates can be spawned in to allow the spawning
  9. * of new actors in a certain way, and are the basis of any RPG level.
  10. *
  11. * When copying this file to create a new mission template, be sure to rename the class name AND the file name to the same name, and to change this description
  12. * to explain what is in the template!
  13. *
  14. * - Ramaraunt
  15. */
  16.  
  17. //This class extends MissionTemplatesBase (which in turn extents MonoBehavior), and contains the base methods of Unity.
  18. #region MissionTemplates Class
  19. public class MissionTemplates : MissionTemplatesBase {
  20.  
  21. //Initialize spawners here. Say, for instance:
  22. // public GameObject spawner;
  23. //Then drag and drop the correct object to the script within Unity IDE.
  24. #region init spawners here
  25. public GameObject spawner;
  26. #endregion
  27.  
  28. //This is the part you edit to make new MTs!
  29. #region Editable Region
  30. //This method automatically runs when the object that contains this script is created.
  31. void Awake ()
  32. {
  33. makeNaked(spawner);
  34. }
  35.  
  36. //This method is called once per frame of the game.
  37. void Update ()
  38. {
  39. //if you want to make something that occurs after a certain amount of time, go like this:
  40. /*
  41. *
  42. * if (Time.time >= <enter time here>)
  43. * {
  44. * Do stuff here!
  45. * }
  46. *
  47. */
  48. }
  49.  
  50. /*
  51. //Use this method if you are interested in having actors spawn in after a trigger has been hit!
  52. void onTriggerEnter()
  53. {
  54.  
  55. }
  56. */
  57.  
  58. #endregion
  59. }
  60. #endregion
Advertisement
Add Comment
Please, Sign In to add comment