void UpdateGoalMaterial() { if (_goalLife <= 0) { Material newMaterial = Materializer.GetMaterial("Dead Goal"); gameObject.GetComponent <Renderer>().material = newMaterial; } }
void UpdateGoalMaterial() { if (_goalLife <= 0) { Material newMaterial = Materializer.GetMaterial("Dead Goal"); gameObject.GetComponent <Renderer>().material = newMaterial; } }