void SetMaterial() { _material = Instantiate(GetComponent <Renderer>().material); MaterialUtils.Emission(_material, true); _material.color = _baseColor; _material.SetColor("_EmissionColor", _flashColor); GetComponent <Renderer>().material = _material; }
public void EmissionDisable() { if (Configs.Instance.stageNum == 0) { foreach (var m in materials) { MaterialUtils.Emission(m, true); } } else { foreach (var m in materials) { MaterialUtils.Emission(m, false); } } }
public void EmissionEnable() { if (Configs.Instance.stageNum == 0) { foreach (var m in materials) { MaterialUtils.Emission(m, false); } } else { foreach (var m in materials) { MaterialUtils.Emission(m, true); m.SetColor("_EmissionColor", _flashColor); } } }