// Start is called before the first frame update void Start() { //VM = GetComponent<VinMov>(); VP = GetComponent <VinPower>(); currentLife = maxLife; maxScale = lifeBar.localScale.x; }
private void OnParticleCollision(GameObject other) { VinPower vinPower = gameObject.GetComponent <VinPower>(); if (vinPower != null && vinPower.isShielding() && other.tag == "AlienLaser") { onParticleCollision.Invoke(); } else if (vinPower == null) { onParticleCollision.Invoke(); } }