Пример #1
0
        /// シーンの破棄
        public void Term()
        {
            if (calCollGrav != null)
            {
                calCollGrav.Term();
            }
            if (moveCollMgr != null)
            {
                moveCollMgr.Term();
            }
            if (shapeMove != null)
            {
                shapeMove.Term();
            }
            if (renderSph != null)
            {
                renderSph.Dispose();
            }

///        trgObj            = null;
            renderSph   = null;
            shapeMove   = null;
            moveCollMgr = null;
            calCollGrav = null;
            useSceneMgr = null;
        }
Пример #2
0
        /// シーンの初期化
        public bool Init(DemoGame.SceneManager sceneMgr)
        {
            useSceneMgr = sceneMgr;

            calCollGrav = new ActorUnitCollGravity();
            calCollGrav.Init();

            moveCollMgr = new GameActorCollManager();
            moveCollMgr.Init();

            shapeMove = new ShapeSphere();
            shapeMove.Init(1);
            shapeMove.Set(0, StaticDataList.getVectorZero(), 0.001f);

            renderSph = new DemoGame.RenderGeometry();
            renderSph.MakeSphere();
///        trgObj        = null;

            /// 移動する自身のOBJを登録
            moveCollMgr.SetMoveShape(shapeMove);


            trgObjMoveSpd = 1.0f;
            setPlaceTypeParam(trgObjType);

            nowTaskId = debugMenuTaskId.SelectObj;
            changeTask(debugMenuTaskId.SelectObj);
            return(true);
        }
Пример #3
0
/// public メソッド
///---------------------------------------------------------------------------

        /// 初期化
        public void Init()
        {
            calCollMove = new ActorUnitCollMove();
            calCollMove.Init();
            calCollGrav = new ActorUnitCollGravity();
            calCollGrav.Init();
        }
Пример #4
0
 /// 破棄
 public void Term()
 {
     if (calCollMove != null)
     {
         calCollMove.Term();
     }
     if (calCollGrav != null)
     {
         calCollGrav.Term();
     }
     calCollGrav      = null;
     calCollMove      = null;
     useCollMgr       = null;
     useActor         = null;
     useInterfereCntr = null;
 }
Пример #5
0
        /// シーンの破棄
        public void Term()
        {
            if( calCollGrav != null ){
            calCollGrav.Term();
            }
            if( moveCollMgr != null ){
            moveCollMgr.Term();
            }
            if( shapeMove != null ){
            shapeMove.Term();
            }
            if( renderSph != null ){
            renderSph.Dispose();
            }

            ///        trgObj            = null;
            renderSph        = null;
            shapeMove        = null;
            moveCollMgr        = null;
            calCollGrav        = null;
            useSceneMgr        = null;
        }
Пример #6
0
        /// シーンの初期化
        public bool Init( DemoGame.SceneManager sceneMgr )
        {
            useSceneMgr = sceneMgr;

            calCollGrav    = new ActorUnitCollGravity();
            calCollGrav.Init();

            moveCollMgr = new GameActorCollManager();
            moveCollMgr.Init();

            shapeMove = new ShapeSphere();
            shapeMove.Init(1);
            shapeMove.Set( 0, StaticDataList.getVectorZero(), 0.001f );

            renderSph = new DemoGame.RenderGeometry();
            renderSph.MakeSphere();
            ///        trgObj        = null;

            /// 移動する自身のOBJを登録
            moveCollMgr.SetMoveShape( shapeMove );

            trgObjMoveSpd = 1.0f;
            setPlaceTypeParam( trgObjType );

            nowTaskId    = debugMenuTaskId.SelectObj;
            changeTask( debugMenuTaskId.SelectObj );
            return true;
        }
Пример #7
0
 /// 破棄
 public void Term()
 {
     if( calCollMove != null ){
     calCollMove.Term();
     }
     if( calCollGrav != null ){
     calCollGrav.Term();
     }
     calCollGrav         = null;
     calCollMove         = null;
     useCollMgr          = null;
     useActor            = null;
     useInterfereCntr    = null;
 }
Пример #8
0
 /// public メソッド
 ///---------------------------------------------------------------------------
 /// 初期化
 public void Init()
 {
     calCollMove    = new ActorUnitCollMove();
     calCollMove.Init();
     calCollGrav    = new ActorUnitCollGravity();
     calCollGrav.Init();
 }