Added Node camera transitions

Fixed Conveyor speedup issue
This commit is contained in:
Jan Groß
2021-06-12 15:28:07 +02:00
parent 4ad82fe684
commit 759cf0a383
10 changed files with 228 additions and 32 deletions

View File

@@ -1,18 +1,18 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DirectionPaddle : MonoBehaviour
{
public void Switch()
{
gameObject.SetActive(!gameObject.activeSelf);
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class DirectionPaddle : MonoBehaviour
{
public void Switch()
{
gameObject.SetActive(!gameObject.activeSelf);
}
public void InteractNode()
{
this.GetComponent<Collider>().enabled = !this.GetComponent<Collider>().enabled;
this.GetComponent<MeshRenderer>().enabled = !this.GetComponent<MeshRenderer>().enabled;
}
}
}
}