API
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
|
||||
namespace Archaic{
|
||||
public class PongBallBehavior : MonoBehaviour
|
||||
{
|
||||
public static Vector2 score; // Don't ask why I made the score a Vector, I just felt like it
|
||||
@@ -53,3 +54,4 @@ public class PongBallBehavior : MonoBehaviour
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
using UnityEngine.InputSystem;
|
||||
|
||||
namespace Archaic{
|
||||
public class PongPaddleBehavior : MonoBehaviour
|
||||
{
|
||||
public float speed = 5f;
|
||||
@@ -44,3 +44,4 @@ public class PongPaddleBehavior : MonoBehaviour
|
||||
rb.linearVelocityY = direction * speed * Time.fixedDeltaTime;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,7 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine; using Game; using Music; using Player;
|
||||
|
||||
namespace Archaic{
|
||||
public class PongScorekeeper : MonoBehaviour
|
||||
{
|
||||
public TextMeshProUGUI player1Score;
|
||||
@@ -12,3 +13,4 @@ public class PongScorekeeper : MonoBehaviour
|
||||
player2Score.text = PongBallBehavior.score.y.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user