示例#1
0
        /// <summary>
        /// ポジション、ロケーション初期設定
        /// </summary>
        private void SetPositionAndLocation()
        {
            //位置を設定
            if (this.AllocationId == 1)
            {
                //右に配置
                Position = MST_CARACTER_POSITION.Right;
            }
            else if (this.AllocationId == 2)
            {
                //真ん中に配置
                Position = MST_CARACTER_POSITION.Center;
            }
            else if (this.AllocationId == 3)
            {
                //左に配置
                Position = MST_CARACTER_POSITION.Left;
            }
            else
            {
                //司会位置に設定
                Position = MST_CARACTER_POSITION.Moderator;
            }

            //デフォルトY座標設定
            //this.LocationY = -2.05F;
            this.LocationY = -90;

            //モデルロケーションの設定
            this.ModelLocation = MODEL_POS.GetPosLive2d20(this.Position, this.LocationY);
        }
示例#2
0
        /// <summary>
        /// ポジション、ロケーション初期設定
        /// </summary>
        private void InitPositionAndLocation()
        {
            //初期位置はアロケーションID = Positionとする。
            Position = AllocationId;

            //デフォルトY座標設定
            this.LocationY = modelSetting.ModelLocationY;

            //モデルロケーションの設定
            this.ModelLocation = MODEL_POS.GetPosLive2d30(this.Position, this.LocationY, this.ModelNum);
        }
示例#3
0
        /// <summary>
        /// 対象の位置に移動する
        /// </summary>
        public void MoveTarget()
        {
            ModelLocation = MODEL_POS.GetPosLive2d20(this.Position, this.LocationY);

            MoveTarget(ModelLocation);
        }