Add scene transitions, lose sanity points
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace Scampz.GameJam.Assets.Scripts
|
||||
{
|
||||
public class UseGroundChecking : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
private bool useGroundChecking;
|
||||
|
||||
private void OnTriggerEnter(Collider collider)
|
||||
{
|
||||
if (collider.CompareTag("Player"))
|
||||
{
|
||||
var playerSpawnController = FindObjectOfType<PlayerSpawnController>();
|
||||
var player = playerSpawnController.Player;
|
||||
var rayCaster = player.GetComponent<RayCaster>();
|
||||
rayCaster.enabled = useGroundChecking;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e569519f096090547aafb2a539705467
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user