Added Node camera transitions
Fixed Conveyor speedup issue
This commit is contained in:
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user