mirror of
https://github.com/Steffo99/bleach-beach.git
synced 2024-12-04 19:04:19 +00:00
22 lines
365 B
C#
22 lines
365 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class RampinoTester : MonoBehaviour
|
|
{
|
|
|
|
public Rigidbody2D rb;
|
|
|
|
void Start()
|
|
{
|
|
rb = GetComponent<Rigidbody2D>();
|
|
}
|
|
|
|
void Update()
|
|
{
|
|
if (Input.GetKey(KeyCode.Space))
|
|
{
|
|
rb.AddForce(Vector2.up * 20f);
|
|
}
|
|
}
|
|
}
|