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

+1 -1
View File
@@ -38,7 +38,7 @@ public class booMovement : MonoBehaviour
if ((transform.position.x < player.position.x && ball)||(transform.position.x > player.position.x && !ball))
{
Debug.Log("Away");
//Debug.Log("Away");
player = cat.transform;
Vector3 direction = player.position - transform.position;
movement = direction.normalized;