mirror of
https://github.com/frizbee19/FebGameJam.git
synced 2026-10-11 18:19:11 +00:00
Ceiling Trigger made easy as a prefab
Should work just fine, use the sliders to determine how far you want the char to go.
This commit is contained in:
1 parent
0d8b440f57
commit
023b003cbe
12 files changed
+566
-336
No files matched your search
@@ -37,10 +37,10 @@ public class UpdatedWallTrigger : MonoBehaviour
|
||||
{
|
||||
if (xe >= 44 && xe <50)
|
||||
{
|
||||
Debug.Log("Counter Right "+counter);
|
||||
/*Debug.Log("Counter Right "+counter);
|
||||
Debug.Log("XE " + xe);
|
||||
Debug.Log("Goaly " + goaly);
|
||||
Debug.Log(target.position.y * box.size.y);
|
||||
Debug.Log(target.position.y * box.size.y);*/
|
||||
camMove.transform.position = new Vector3(camMove.transform.position.x + 22f, camMove.transform.position.y, -1.3f);
|
||||
catMove.transform.position = new Vector3(catMove.transform.position.x + 10f, catMove.transform.position.y+1f, 0);
|
||||
xe = 0;
|
||||
@@ -51,9 +51,9 @@ public class UpdatedWallTrigger : MonoBehaviour
|
||||
}
|
||||
else if (xe >=50)
|
||||
{
|
||||
Debug.Log("Counter Left " + counter);
|
||||
/*Debug.Log("Counter Left " + counter);
|
||||
Debug.Log("XE "+ye);
|
||||
Debug.Log("Goaly "+ goaly);
|
||||
Debug.Log("Goaly "+ goaly);*/
|
||||
camMove.transform.position = new Vector3(camMove.transform.position.x - 22f, catMove.transform.position.y + 1.0f,-1.3f);
|
||||
catMove.transform.position = new Vector3(catMove.transform.position.x - 10f, catMove.transform.position.y ,0);
|
||||
counter = 0;
|
||||
@@ -71,4 +71,4 @@ public class UpdatedWallTrigger : MonoBehaviour
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user