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:
Unknown committed 2022-02-25 22:52:58 -06:00
1 parent 0d8b440f57
commit 023b003cbe
12 files changed
+566 -336

No files matched your search

+5 -5
View File
@@ -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
}
}
}
}