public override void Setup() { base.Setup(); _originalMaterials = MaterialUtil.GetOriginalMaterials(gameObject); MaterialUtil.ReplaceMaterial(gameObject, Material); }
public override void Run() { _rendToMaterialsMap = MaterialUtil.GetOriginalMaterials(gameObject); MaterialUtil.AddMaterial(gameObject, Material); InvokeUtil.RunLater(this, Revert, LifeTime); }