예제 #1
0
        public override void Setup()
        {
            base.Setup();

            _originalMaterials = MaterialUtil.GetOriginalMaterials(gameObject);
            MaterialUtil.ReplaceMaterial(gameObject, Material);
        }
예제 #2
0
        public override void Run()
        {
            base.Run();

            //Revert
            InvokeUtil.RunLater(this, delegate
            {
                MaterialUtil.ReplaceMaterial(_originalMaterials);
                _originalMaterials.Clear();
            }, LifeTime);
        }
예제 #3
0
 public void Revert()
 {
     MaterialUtil.ReplaceMaterial(_rendToMaterialsMap);
     _rendToMaterialsMap.Clear();
 }