示例#1
0
        /// 備品の登録
        public void EntryAddFix(int fixResId, Vector3 rot, Vector3 scale, Vector3 pos)
        {
            Data.ModelDataManager resMgr = Data.ModelDataManager.GetInstance();
            if (resMgr.GetModel((int)Data.ModelResId.Fix00 + fixResId) == null)
            {
                return;
            }

            ActorFixBase actorFix;

            Data.FixTypeId fixId = (Data.FixTypeId)fixResId;

            if (fixId == Data.FixTypeId.Fix00 || fixId == Data.FixTypeId.Fix01 || fixId == Data.FixTypeId.Fix03 || fixId == Data.FixTypeId.Fix04)
            {
                actorFix = new ActorFixWooden();
            }
            else
            {
                actorFix = new ActorFixNormal();
            }

            actorFix.Init();
            actorFix.Start();
            actorFix.SetMdlHandle(fixId);

            actorFixList.Add(actorFix);

            SetPlace((actorFixList.Count - 1), rot, scale, pos);
        }
示例#2
0
        /// 備品の登録
        public void EntryAddFix( int fixResId, Vector3 rot, Vector3 scale, Vector3 pos )
        {
            Data.ModelDataManager    resMgr = Data.ModelDataManager.GetInstance();
            if( resMgr.GetModel( (int)Data.ModelResId.Fix00 + fixResId ) == null ){
            return ;
            }

            ActorFixBase actorFix;

            Data.FixTypeId fixId = (Data.FixTypeId)fixResId;

            if( fixId == Data.FixTypeId.Fix00 || fixId == Data.FixTypeId.Fix01 || fixId == Data.FixTypeId.Fix03 || fixId == Data.FixTypeId.Fix04 ){
            actorFix = new ActorFixWooden();
            }
            else{
            actorFix = new ActorFixNormal();
            }

            actorFix.Init();
            actorFix.Start();
            actorFix.SetMdlHandle( fixId );

            actorFixList.Add( actorFix );

            SetPlace( (actorFixList.Count-1), rot, scale, pos );
        }