public override void EquipementFeedbackInit(Equipement _source) { base.EquipementFeedbackInit(_source); if (_source.GetType() == typeof(HullSonar)) { sourceHullSonar = _source as HullSonar; } else { print("FeedBack specified to equipement: " + _source.GetType().ToString() + " is not the right feedback"); return; } waveRenderer.material = waveMaterial; waveRenderer.sharedMaterial.SetFloat("VitesseOnde", waveSpeed); waveRenderer.transform.localScale = Vector3.one * scaleFactor; }
public override void EquipementFeedbackInit(Equipement _source) { base.EquipementFeedbackInit(_source); if (_source.GetType() == typeof(Mad)) { sourceMad = _source as Mad; } else { print("FeedBack specified to equipement: " + _source.GetType().ToString() + " is not the right feedback"); return; } madRenderer.transform.localScale = Vector3.one; madRenderer.transform.localScale *= scaleFactor; }