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