コード例 #1
0
ファイル: Tank.cs プロジェクト: magotoolivesource/C-MTGCode
        public void Fire()
        {
            //m_LinkInGameTank.CreateBullet(this);

            InGameTank.Instance().CreateBullet(this);

            ;
        }
コード例 #2
0
        public static InGameTank Instance()
        {
            if (m_Instance == null)
            {
                m_Instance = new InGameTank();
            }

            return(m_Instance);
        }
コード例 #3
0
ファイル: Tank.cs プロジェクト: magotoolivesource/C-MTGCode
        public virtual void InitTankData(Vector2 p_initpos
                                         , E_Driection p_direction
                                         , ConsoleColor p_color = ConsoleColor.Green
                                         //, Stage p_stagedata
                                         //, InGameTank p_tankmanager
                                         )
        {
            m_DirectionVal     = p_direction;
            m_CurrentStageData = InGameTank.Instance().m_InGameStage;// p_stagedata;
            CurrentPos         = p_initpos;
            HP = 2;
            m_LinkInGameTank = InGameTank.GetI;

            m_Color = p_color;
        }
コード例 #4
0
        static void Main(string[] args)
        {
            //UnityCoroutinue.GetI.StartCoroutinue();
            //(UnityCoroutinue.GetI as UnityCoroutinue).StartCoroutinue();



            //TestCoroutinue testcoroutinue = new TestCoroutinue();
            ////testcoroutinue.Step02Init();
            //testcoroutinue.Step03Init();



            //// 참고용 소스
            //TestStep02Coroutinue step02 = new TestStep02Coroutinue();
            //step02.InitSetting01();



            //CoroutinueManager manager = CoroutinueManager.GetI;



            ////UnityCoroutinue coroutinuemanager = UnityCoroutinue.GetI;

            //Test03_UnityCoroutinue test03 = new Test03_UnityCoroutinue();
            //test03.InitSettingTestCoroutinue();


            //while (true)
            //{
            //    manager.UpdateCoroutinue();
            //    UnityCoroutinue.GetI.LoopUpdateCoroutinue();
            //}
            //// 참고용 소스



            //while()
            //{

            //}


            //TestDelegate testdelegate = new TestDelegate();
            //testdelegate.TestCalc();

            //TestSource2 test = new TestSource2();
            //test.TestSource();


            //TestSource test = new TestSource();
            //test.TestData();

            //InGameTank tankgame = new InGameTank();
            //tankgame.InGameStart();


            //InGameTank tankgame = InGameTank.Instance();
            //tankgame.InGameStart();

            InGameTank.Instance().InGameStart();
        }