Added health, respawning and Bullet spawners

This commit is contained in:
2022-04-18 00:32:24 +02:00
parent 1bd6d79672
commit 209470d610
227 changed files with 53417 additions and 40 deletions

View File

@@ -4,20 +4,26 @@ using UnityEngine;
public class Extinguisher : Pickup
{
public Player player;
[SerializeField]
private float amount;
public override void OnPickup()
{
throw new System.NotImplementedException();
// we have to stop the particle system before making changes
ParticleSystem system = player.trail.GetComponent<ParticleSystem>();
system.Stop();
system.startLifetime *= amount;
system.Play();
}
// Start is called before the first frame update
void Start()
{
}
player = GameObject.FindGameObjectWithTag("Player").GetComponent<Player>();
// Update is called once per frame
void Update()
{
}
}