Creating the Final Room
Now the moment we've all been waiting for, the moment the marine has been desperately striving for: the teleporter pad to get off the planet with the secret plans. Here's how to get it going:
- In the area on the far side of the bridge, create a Cylinder named
Dais
. Set its Scale to4
,0.1
,4
, so it is large and very flat. By default, it comes with a Capsule Collider. Be sure to check IsTrigger. - Set the dais so that it barely sticks out of the floor.
- Apply the Green Glow MAT material you previously created.
- Create a new script on the object called
Dais.cs
. Create the shell of the class:using System.Collections; using System.Collections.Generic; using UnityEngine; public class Dais : MonoBehaviour { public GameObject finalFX; GameObject marine; } // end class
- The class only has two methods. Here is the first. It tests whether the...