Add base classes and properties

This commit is contained in:
2022-04-16 17:30:49 +02:00
parent a1697f8587
commit 4e4bd27bbc
38 changed files with 1264 additions and 268 deletions

View File

@@ -0,0 +1,41 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Player : MonoBehaviour
{
public int health;
public float speed;
public float trailLength;
public ParticleSystem trail;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
public void DecreaseTrail(float val)
{
//Decreate trail length (for pickups)
}
public void BulletHit()
{
//Increate trail length
}
private void OnParticleCollision(GameObject other)
{
if (other == trail)
{
//Hit by trail
}
}
}