Ejemplo n.º 1
0
        //====//====//====//====//====//====//====//====

        // Use this for initialization
        void Start()
        {
            FrameControl.SetDeltaTime_30FPS();              //30Fps 기준으로 설정한다.  30Fps 고정프레임으로 사용하겠다는 것이 아님.

            _crtMgr = new CharacterManager();
            _crtMgr.Init(CHARACTER_COUNT);

            _rscMgr = CSingleton <ResourceManager> .Instance;
            _rscMgr.Init();

            _ui_battle = this.gameObject.AddComponent <UI_Battle> ();
            _ui_battle.Init();

            this.CreatePlayer();

            _ui_1Player = _ui_battle.GetCharacter(ID_PLAYER_1);
            _ui_2Player = _ui_battle.GetCharacter(ID_PLAYER_2);
        }
Ejemplo n.º 2
0
    public static void InitData(UI_Battle ui, List <Vector3> path_list)
    {
        ui_battle = ui;
        mPathList = path_list;
        mCurWave  = 0; //波数初始化为0
        HomeLife  = 5; //家生命值初始化为5
        _time     = 0;
        mEnemyList.Clear();
        CallEnemyList.Add(enemyInfo("Warrior", 10, 1.5f, 5, 1));
        //CallEnemyList.Add(enemyInfo("Warrior_example1", 5, 4, 3));
        //CallEnemyList.Add(enemyInfo("Warrior_example2", 50, 1, 1));
        CallEnemyList.Add(enemyInfo("Warrior", 5, 1.5f, 1, 2));
        CallEnemyList.Add(enemyInfo("Warrior", 50, 0.5f, 1, 3));



        for (int i = 0; i < mEnemyList.Count; i++)
        {
            mEnemyList[i].DeleteObj();
        }
        mBattleStop = false;
    }
Ejemplo n.º 3
0
 public Action(UI_Battle.Op op, Baggrid bg)
 {
     this.op = op;
     this.bg = bg;
 }