Initial Commit (broken due to version update)

This commit is contained in:
Reinier Vens 2020-09-25 07:12:38 +01:00
commit 3f7b3b7440
3132 changed files with 1103305 additions and 0 deletions

View file

@ -0,0 +1,25 @@
using UnityEngine;
namespace Assets
{
public class PaddleController : MonoBehaviour
{
public bool isPaddle1;
public float speed = 5f;
void Start () {
}
// Update is called once per frame
void Update ()
{
transform.position = new Vector3(transform.position.x,0,Input.GetAxis(isPaddle1?"Vertical":"Vertical2") * ScoreControl.Instance.ArenaWidth);
if(isPaddle1)
transform.Translate(0f, Input.GetAxis("Vertical")* speed * Time.deltaTime, 0f);
else
transform.Translate(0f, Input.GetAxis("Vertical2") * speed * Time.deltaTime, 0f);
}
}
}