mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-09-11 08:17:01 +00:00
Added Camera switching needs to be smoothed soon
This commit is contained in:
@@ -9,7 +9,7 @@ public class WallTrigger : MonoBehaviour
|
||||
public GameObject cat;
|
||||
private int counter = 0;
|
||||
private Vector3 moveCam = new Vector3(20,0,0);
|
||||
private Vector3 moveCat = new Vector3(4,0,0);
|
||||
private Vector3 moveCat = new Vector3(5,0,0);
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
@@ -28,7 +28,7 @@ public class WallTrigger : MonoBehaviour
|
||||
{
|
||||
Interact(col);
|
||||
}
|
||||
if (!entered && counter >= 120)
|
||||
if (!entered && counter >= 6)
|
||||
{
|
||||
entered = true;
|
||||
|
||||
@@ -39,7 +39,7 @@ public class WallTrigger : MonoBehaviour
|
||||
counter = 0;
|
||||
//PlayerMovement.ChangePos(1, 2);
|
||||
}
|
||||
else if (counter >= 120 && entered)
|
||||
else if (counter >= 6 && entered)
|
||||
{
|
||||
//Debug.Log("Moved cam left");
|
||||
//Debug.Log(counter);
|
||||
|
||||
Reference in New Issue
Block a user