Exemplo n.º 1
0
 public override void shade(ImageEventData aData)
 {
     foreach (Mesh2D tMesh in mMeshs)
     {
         tMesh.setColor(new Color(1f - aData.mShadow, 1f - aData.mShadow, 1f - aData.mShadow, 1));
     }
 }
Exemplo n.º 2
0
        private static ImageEventData SetupImageBaseData()
        {
            ImageEventData imgEventData = new ImageEventData();

            imgEventData.Id        = "eventId-1234";
            imgEventData.Subject   = "foo/imageId-1234";
            imgEventData.EventType = "ImageCaptionUpdated";
            return(imgEventData);
        }
Exemplo n.º 3
0
        public static IList <ImageEventData> SetupImageCaptionData()
        {
            List <ImageEventData> imageEvents    = new List <ImageEventData>();
            ImageEventData        imageEventData = SetupImageBaseData();

            imageEventData.Data         = new ImageData();
            imageEventData.Data.Caption = "a closeup of a logo";
            imageEvents.Add(imageEventData);

            return(imageEvents);
        }
Exemplo n.º 4
0
 /// <summary>
 /// 画像イベントを適用する
 /// </summary>
 /// <param name="aData">適用する画像イベントのデータ</param>
 public void applyImageEvent(ImageEventData aData)
 {
     //影
     if (mLastImageEventData.mShadow != aData.mShadow)
     {
         shade(aData);
     }
     //表示位置補正
     if (mLastImageEventData.mShift != aData.mShift)
     {
         correctPosition(aData);
     }
     mLastImageEventData = aData;
 }
Exemplo n.º 5
0
    /// <summary>画像イベントを適用する</summary>
    static public void applyImageEvent(MapEntity aBehaviour)
    {
        ImageEventTrigger tTrigger;
        ImageEventData    tImageEventData = new ImageEventData();

        foreach (Collider tCollider in Physics.OverlapSphere(aBehaviour.worldPosition, 0))
        {
            tTrigger = tCollider.GetComponent <ImageEventTrigger>();
            if (tTrigger == null)
            {
                continue;
            }
            tTrigger.plusEvent(tImageEventData, aBehaviour);
        }
        aBehaviour.mEntityRenderBehaviour.mBody.applyImageEvent(tImageEventData);
    }
 /// <summary>影を落とす</summary>
 public override void shade(ImageEventData aData)
 {
     mMesh.setColor(new Color(1f - aData.mShadow, 1f - aData.mShadow, 1f - aData.mShadow, 1));
 }
Exemplo n.º 7
0
 public override void plusEvent(ImageEventData aData, MapEntity aBehaviour)
 {
     aData.shade(mShadePower);
 }
Exemplo n.º 8
0
 /// <summary>この画像の座標を弄る</summary>
 public virtual void correctPosition(ImageEventData aData)
 {
 }
Exemplo n.º 9
0
 /// <summary>この画像に影を落とす</summary>
 public virtual void shade(ImageEventData aData)
 {
 }
Exemplo n.º 10
0
 /// <summary>
 /// このトリガーの画像イベントを引数のイベントデータに追加する
 /// </summary>
 /// <param name="aData">画像イベントデータ</param>
 /// <param name="aBehaviour">画像イベントを適用するbehaviour</param>
 public virtual void plusEvent(ImageEventData aData, MapEntity aBehaviour)
 {
 }