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

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

            MaterialUtil.AddMaterial(gameObject, Material);

            InvokeUtil.RunLater(this, Revert, LifeTime);
        }