public void SpawnScorePoint(uint point, Vector3 position) { ABParticle scoreParticle = _scoreEmitter.ShootParticle(); if (!scoreParticle) { return; } scoreParticle.transform.rotation = Quaternion.identity; scoreParticle.transform.position = position; Text pointText = scoreParticle.GetComponent <Text>(); pointText.text = point.ToString(); HUD.Instance.AddScore(point); }
public void SpawnScorePoint(uint point, Vector3 position) { //GameObject edt = GameObject.Find("ModoEditor"); //if (edt != null) return; //if (_scoreEmitter != null) { ABParticle scoreParticle = _scoreEmitter.ShootParticle(); if (!scoreParticle) { return; } scoreParticle.transform.rotation = Quaternion.identity; scoreParticle.transform.position = position; Text pointText = scoreParticle.GetComponent <Text>(); pointText.text = point.ToString(); HUD.Instance.AddScore(point); //} }