Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- using System.Collections;
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- // ABOUT //
- //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- /*
- * This file is a MissionTemplate Template (of the reduntant department of redundancy :D). MissionTemplates can be spawned in to allow the spawning
- * of new actors in a certain way, and are the basis of any RPG level.
- *
- * 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
- * to explain what is in the template!
- *
- * - Ramaraunt
- */
- //This class extends MissionTemplatesBase (which in turn extents MonoBehavior), and contains the base methods of Unity.
- #region MissionTemplates Class
- public class MissionTemplates : MissionTemplatesBase {
- //Initialize spawners here. Say, for instance:
- // public GameObject spawner;
- //Then drag and drop the correct object to the script within Unity IDE.
- #region init spawners here
- public GameObject spawner;
- #endregion
- //This is the part you edit to make new MTs!
- #region Editable Region
- //This method automatically runs when the object that contains this script is created.
- void Awake ()
- {
- makeNaked(spawner);
- }
- //This method is called once per frame of the game.
- void Update ()
- {
- //if you want to make something that occurs after a certain amount of time, go like this:
- /*
- *
- * if (Time.time >= <enter time here>)
- * {
- * Do stuff here!
- * }
- *
- */
- }
- /*
- //Use this method if you are interested in having actors spawn in after a trigger has been hit!
- void onTriggerEnter()
- {
- }
- */
- #endregion
- }
- #endregion
Advertisement
Add Comment
Please, Sign In to add comment