Esempio n. 1
0
        public static void SetRewardIcon(UXSprite sprite, IGeometryVO config, AnimationPreference animPreference = AnimationPreference.NoAnimation)
        {
            ProjectorConfig projectorConfig = ProjectorUtils.GenerateGeometryConfig(config, sprite);

            projectorConfig.AnimPreference = animPreference;
            ProjectorUtils.GenerateProjector(projectorConfig);
        }
Esempio n. 2
0
 public void MakeEquivalentTo(ProjectorConfig config)
 {
     if (config == null)
     {
         return;
     }
     this.AssetName                   = config.AssetName;
     this.AttachmentAssets            = config.AttachmentAssets;
     this.CameraPosition              = config.CameraPosition;
     this.CameraInterest              = config.CameraInterest;
     this.closeup                     = config.closeup;
     this.SnapshotFrameDelay          = config.SnapshotFrameDelay;
     this.AnimPreference              = config.AnimPreference;
     this.AnimationName               = config.AnimationName;
     this.AnimState                   = config.AnimState;
     this.Metered                     = config.Metered;
     this.MeterValue                  = config.MeterValue;
     this.Outline                     = config.Outline;
     this.OutlineOuter                = config.OutlineOuter;
     this.OutlineInner                = config.OutlineInner;
     this.TrackerName                 = config.TrackerName;
     this.FrameSprite                 = config.FrameSprite;
     this.Sharpness                   = config.Sharpness;
     this.RenderWidth                 = config.RenderWidth;
     this.RenderHeight                = config.RenderHeight;
     this.buildingEquipmentShaderName = config.buildingEquipmentShaderName;
     this.Tint = config.Tint;
 }