Пример #1
0
        public ShaderSwappedEntity(Entity entity, string shaderName)
        {
            this.entity             = entity;
            this.combineMeshManager = Service.CombineMeshManager;
            GameObjectViewComponent gameObjectViewComponent = entity.Get <GameObjectViewComponent>();

            if (gameObjectViewComponent != null)
            {
                base.Init(gameObjectViewComponent.MainGameObject, shaderName);
            }
        }
Пример #2
0
 public FlashingEntity(SmartEntity entity, GameObject gameObject, float flashDuration, float flashDelay)
 {
     this.entity             = entity;
     this.gameObject         = gameObject;
     this.flashDuration      = ((flashDuration >= 0f) ? flashDuration : 0f);
     this.flashDelay         = ((flashDelay >= 0f) ? flashDelay : 0f);
     this.flashActiveCounter = 0f;
     this.flashDelayCounter  = 0f;
     this.flashingMaterials  = null;
     this.oldMaterials       = null;
     this.combineMeshManager = Service.CombineMeshManager;
 }
Пример #3
0
 public FlashingEntity(SmartEntity entity, GameObject gameObject, float flashDuration, float flashDelay)
 {
     this.startColor = new Color(1f, 1f, 1f, 1f);
     this.finalColor = new Color(0.5f, 0.5f, 0.5f, 1f);
     base..ctor();
     this.entity             = entity;
     this.gameObject         = gameObject;
     this.flashDuration      = ((flashDuration < 0f) ? 0f : flashDuration);
     this.flashDelay         = ((flashDelay < 0f) ? 0f : flashDelay);
     this.flashActiveCounter = 0f;
     this.flashDelayCounter  = 0f;
     this.flashingMaterials  = null;
     this.oldMaterials       = null;
     this.combineMeshManager = Service.Get <CombineMeshManager>();
 }