This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.InputSystem; | |
[RequireComponent(typeof(Rigidbody))] | |
public class SimplePlayerController : MonoBehaviour | |
{ | |
public float walkSpeed = 10.0f; | |
public float turnSpeed = 50.0f; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class SimpleDoor : MonoBehaviour | |
{ | |
/* | |
* Anything can be a door if this script is used. When toggleDoor | |
* is true the object will move to it's doorOpenPosition or | |
* doorClosePosition. | |
* | |
* This script was made with the intention that you would use another |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class ObjectSpawner : MonoBehaviour | |
{ | |
/* | |
* PLEASE note that this does not do anything with the spawend objects. | |
* | |
* You should have a way to destroy excess spawned objects or you may flood your computer with them. | |
*/ |