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
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user