@ -1,8 +1,12 @@
using UnityEngine ;
using UnityEngine ;
using System.Collections ;
using System.Collections ;
using Fungus ;
/ * *
/ * *
* We recommend placing your room code in the Fungus namespace to avoid class name conflicts with other Unity libraries .
* /
namespace Fungus
{
/ * *
* This class is a template to use as a starting point for your own Room scripts .
* This class is a template to use as a starting point for your own Room scripts .
* 1. Select this script in the Project window in Unity3D
* 1. Select this script in the Project window in Unity3D
* 2. Choose Edit > Duplicate from the menu . A copy of the file will be created .
* 2. Choose Edit > Duplicate from the menu . A copy of the file will be created .
@ -10,8 +14,8 @@ using Fungus;
* 4. Edit the script and rename the class to match the file name ( e . g . public class RoomTemplate = > public class DungeonRoom )
* 4. Edit the script and rename the class to match the file name ( e . g . public class RoomTemplate = > public class DungeonRoom )
* 5. Save the script and add it as a component to your Room game object in Unity 3D .
* 5. Save the script and add it as a component to your Room game object in Unity 3D .
* /
* /
public class RoomTemplate : Room
public class RoomTemplate : Room
{
{
// Add public properties here.
// Add public properties here.
// These will appear in the inspector window in Unity so you can connect them to objects in your scene
// These will appear in the inspector window in Unity so you can connect them to objects in your scene
@ -31,4 +35,5 @@ public class RoomTemplate : Room
// Add any sequence of Fungus commands you want here.
// Add any sequence of Fungus commands you want here.
// See FungusExample/Scripts for examples
// See FungusExample/Scripts for examples
}
}
}
}
}