Exemplo n.º 1
0
 public void load(C_PLAYER cPlayer, C_GAMECOIN cGameCooin, C_ENEMYWAVE cEnemyWave, GameObject goTowerHolder)
 {
     m_cPlayer       = cPlayer;
     m_cGameCoin     = cGameCooin;
     m_cEnemyWave    = cEnemyWave;
     m_goTowerHolder = goTowerHolder;
 }
Exemplo n.º 2
0
    public void UpdateUi(C_PLAYER cPlayer, C_GAMECOIN cGameCoin, C_INPUT cInput)
    {
        m_txtGold.text      = cPlayer.getGoid().ToString();
        m_txtCoinCount.text = cPlayer.getCoin().ToString();
        m_txtHealth.text    = cPlayer.getHealth().ToString();

        m_txtCoinName.text       = cGameCoin.getCoinName();
        m_txtCoinFlutuation.text = cGameCoin.getFlutuatuion().ToString() + "%";
        m_txtCoinPrice.text      = cGameCoin.getCoinPrice().ToString();
        m_txtUpgradeTower.text   = cInput.getUpgradePrice().ToString();
    }
Exemplo n.º 3
0
    private void init()
    {
        m_cStageMgr = new C_STAGEMGR();
        m_cPlayer   = GameObject.Find("Player").GetComponent <C_PLAYER>();

        m_QternCameraRotate = Camera.main.transform.rotation;
        m_goLoadData        = GameObject.Find("LoadData");
        m_cLoadData         = m_goLoadData.GetComponent <C_LOADDATA>();

        m_cGameCoin = m_cPlayer.gameObject.GetComponent <C_GAMECOIN>();


        m_cPlayer.init(PlayerPrefs.GetInt("StartResource"), 0, 30);


        Debug.Log(PlayerPrefs.GetInt("coinPrice") + "   " + PlayerPrefs.GetInt("StartResource") + "    " + PlayerPrefs.GetFloat("difficultyHp"));

        m_cStageMgr.init(m_goMovingPoint, m_goPosibleTile, m_goImposibleTile, m_cPlayer, m_cLoadData.getLoadNode(), PlayerPrefs.GetFloat("difficultyHp"));

        m_cGameCoin.init(PlayerPrefs.GetInt("coinPrice"));
        m_cGameCoin.FlututionCoin((m_cStageMgr.getEnemyWave().GetComponent <C_ENEMYWAVE>().getStageCount() + 1));


        m_cUi = new C_UI();
        m_cUi.init();
        //m_cUi.UpdateUi(m_cPlayer, m_cGameCoin,m_cInput);

        m_cStageMgr.getEnemyWave().GetComponent <C_ENEMYWAVE>().setPlayer(m_cPlayer);
        m_cStageMgr.getEnemyWave().GetComponent <C_ENEMYWAVE>().setDifficultyHp(PlayerPrefs.GetFloat("difficultyHp"));
        C_TOWERINFO.m_fUpgradeCount = 0;

        m_goMapHolder        = GameObject.Find("MarsMaps");
        m_goTowerHolder      = new GameObject();
        m_goTowerHolder.name = "TowerHolder";
        m_goTowerHolder.transform.position = new Vector3(11.0f, 0.0f, 11.0f);
        m_cInput = GameObject.Find("UIEvent").GetComponent <C_INPUT>();
        m_cInput.load(m_cPlayer, m_cGameCoin, m_cStageMgr.getEnemyWave().GetComponent <C_ENEMYWAVE>(), m_goTowerHolder);
        //m_cMyTowerProc = GameObject.Find("TowerCreater").GetComponent<C_MYTOWERPROC>();
        m_cMyTowerProc = new C_MYTOWERPROC();
        m_cMyTowerProc.init();

        m_cSceneMgr = gameObject.GetComponent <C_SCENEMGR>();


        m_cGameOver     = GameObject.Find("MainUiCanvas").transform.GetChild(5).GetComponent <C_GAMEOVER>();
        m_goQuestionBox = GameObject.Find("QuestionCanvas");
        m_goQuestionBox.GetComponent <C_QUESTIONMESSAGEBOX>().CloseQuestionBox();

        m_goEnemyHolder       = GameObject.Find("EnemyHolder");
        m_goMovingPointHolder = GameObject.Find("MovingPoints");
    }
Exemplo n.º 4
0
 public void setPlayer(C_PLAYER cPlayer)
 {
     m_cPlayer = cPlayer;
 }
Exemplo n.º 5
0
 public void init(GameObject goMovingPoint, GameObject goGameTile, GameObject goGameImTile, C_PLAYER cPlayer, C_LOADNODE cLoadNode, int nIndex)
 {
     createStage(goMovingPoint, goGameTile, goGameImTile, cLoadNode, nIndex);
     getWavePoint().AddComponent <C_ENEMYWAVE>();
     getWavePoint().GetComponent <C_ENEMYWAVE>().setPlayer(cPlayer);
     getWavePoint().GetComponent <C_ENEMYWAVE>().setDifficultyHp(PlayerPrefs.GetFloat("CustomGameDifficulty"));
 }
Exemplo n.º 6
0
    public void InitMgr()
    {
        if (m_bInit == true)
        {
            return;
        }

        m_cObjectMgr = new C_OBJECTMANGER();
        m_cDataMgr   = new C_DATAMANAGER();
        m_sScene     = new S_SCENEDATA();
        m_cPlayer    = new C_PLAYER();
        m_cSpriteMgr = new C_SPRITEMANAGER();
        m_cAniMgr    = new C_ANIMATIONMANAGER();
        m_cAtrMgr    = new C_ANIMATORMANAGER();

        CharPeaceM     = new PeaceMeter();
        PlanePeaceM    = new PeaceMeter();
        LauncherPeaceM = new PeaceMeter();
        JewelM         = new JewelMeter();
        LauncherCostM  = new LauncherCost();
        SaveLoadCtrlM  = new SaveLoadCtrl();

        InitPeaceMeter();

        //*
        m_cObjectMgr.InsertObject("Flying", Resources.Load("FlyingObject", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Bullet", Resources.Load("Prefab/Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Box_OB", Resources.Load("Prefab/Obstacle", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Cloud", Resources.Load("Prefab/Cloud", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("CloudParticle", Resources.Load("Prefab/CloudParticle", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("EmptyItem_IM", Resources.Load("Prefab/Item", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Penguin_Bullet_Particle", Resources.Load("Prefab/IceBullet_Part", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Cat_Bullet_Particle", Resources.Load("Prefab/CatBullet_Part", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Monkey_Bullet_F_Particle", Resources.Load("Prefab/MonkeyBullet_F_Part", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Monkey_Bullet_Particle", Resources.Load("Prefab/MonkeyBullet_Part", typeof(GameObject)) as GameObject);

        //bullet
        m_cObjectMgr.InsertObject("돼지_Bullet", Resources.Load("Prefab/Char/Pig_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("펭귄_Bullet", Resources.Load("Prefab/Char/Penguin_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("치킨_Bullet", Resources.Load("Prefab/Char/Chicken_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("판다_Bullet", Resources.Load("Prefab/Char/Panda_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("사자_Bullet", Resources.Load("Prefab/Char/Lion_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("코끼리_Bullet", Resources.Load("Prefab/Char/Elepha_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("원숭이_Bullet", Resources.Load("Prefab/Char/Monkey_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("고양이_Bullet", Resources.Load("Prefab/Char/Cat_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("양_Bullet", Resources.Load("Prefab/Char/Sheep_Bullet", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("돼지_Bullet_Charge", Resources.Load("Prefab/Char/Pig_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("펭귄_Bullet_Charge", Resources.Load("Prefab/Char/Penguin_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("치킨_Bullet_Charge", Resources.Load("Prefab/Char/Chicken_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("판다_Bullet_Charge", Resources.Load("Prefab/Char/Panda_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("사자_Bullet_Charge", Resources.Load("Prefab/Char/Lion_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("코끼리_Bullet_Charge", Resources.Load("Prefab/Char/Elepha_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("원숭이_Bullet_Charge", Resources.Load("Prefab/Char/Monkey_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("고양이_Bullet_Charge", Resources.Load("Prefab/Char/Cat_Bullet_Charge", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("양_Bullet_Charge", Resources.Load("Prefab/Char/Sheep_Bullet_Charge", typeof(GameObject)) as GameObject);


        m_cObjectMgr.InsertObject("CharSel_Man", Resources.Load("Prefab/CharSel_Man", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("PlaneSel", Resources.Load("Prefab/PlaneSel", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("LauncherSel", Resources.Load("Prefab/LauncherSel", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("RouletteBoardPeace", Resources.Load("Prefab/BoardPeace", typeof(GameObject)) as GameObject);

        m_cObjectMgr.InsertObject("RedDot", Resources.Load("Prefab/RedDot", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("BlueDot", Resources.Load("Prefab/BlueDot", typeof(GameObject)) as GameObject);

        //launcher
        m_cObjectMgr.InsertObject("새총", Resources.Load("Prefab/BirdGun", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("투석기", Resources.Load("Prefab/Catapult", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("선풍기", Resources.Load("Prefab/Pan", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("공룡", Resources.Load("Prefab/Dino", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("고릴라", Resources.Load("Prefab/Gorilla", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("물로켓", Resources.Load("Prefab/WRocket", typeof(GameObject)) as GameObject);


        //char
        m_cSpriteMgr.InsertSprite("펭귄_Char", Resources.LoadAll("Texture/Character/Penguin_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("고양이_Char", Resources.LoadAll("Texture/Character/Cat_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("양_Char", Resources.LoadAll("Texture/Character/Sheep_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("판다_Char", Resources.LoadAll("Texture/Character/Panda_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("코끼리_Char", Resources.LoadAll("Texture/Character/Elepha_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("돼지_Char", Resources.LoadAll("Texture/Character/Pig_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("원숭이_Char", Resources.LoadAll("Texture/Character/Monkey_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("치킨_Char", Resources.LoadAll("Texture/Character/Chicken_Char", typeof(Sprite))[0] as Sprite);
        m_cSpriteMgr.InsertSprite("사자_Char", Resources.LoadAll("Texture/Character/Lion_Char", typeof(Sprite))[0] as Sprite);
        //hand
        m_cSpriteMgr.InsertSprite("펭귄_Hand", Resources.LoadAll("Texture/Character/Penguin_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("고양이_Hand", Resources.LoadAll("Texture/Character/Cat_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("양_Hand", Resources.LoadAll("Texture/Character/Sheep_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("판다_Hand", Resources.LoadAll("Texture/Character/Panda_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("코끼리_Hand", Resources.LoadAll("Texture/Character/Elepha_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("돼지_Hand", Resources.LoadAll("Texture/Character/Pig_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("원숭이_Hand", Resources.LoadAll("Texture/Character/Monkey_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("치킨_Hand", Resources.LoadAll("Texture/Character/Chicken_Char", typeof(Sprite))[2] as Sprite);
        m_cSpriteMgr.InsertSprite("사자_Hand", Resources.LoadAll("Texture/Character/Lion_Char", typeof(Sprite))[2] as Sprite);
        //char ver select
        m_cSpriteMgr.InsertSprite("펭귄_CharSel", Resources.LoadAll("Texture/Character/Penguin_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("고양이_CharSel", Resources.LoadAll("Texture/Character/Cat_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("양_CharSel", Resources.LoadAll("Texture/Character/Sheep_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("판다_CharSel", Resources.LoadAll("Texture/Character/Panda_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("코끼리_CharSel", Resources.LoadAll("Texture/Character/Elepha_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("돼지_CharSel", Resources.LoadAll("Texture/Character/Pig_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("원숭이_CharSel", Resources.LoadAll("Texture/Character/Monkey_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("치킨_CharSel", Resources.LoadAll("Texture/Character/Chicken_Char", typeof(Sprite))[1] as Sprite);
        m_cSpriteMgr.InsertSprite("사자_CharSel", Resources.LoadAll("Texture/Character/Lion_Char", typeof(Sprite))[1] as Sprite);
        //leg
        m_cSpriteMgr.InsertSprite("펭귄_Leg", Resources.LoadAll("Texture/Character/Penguin_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("고양이_Leg", Resources.LoadAll("Texture/Character/Cat_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("양_Leg", Resources.LoadAll("Texture/Character/Sheep_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("판다_Leg", Resources.LoadAll("Texture/Character/Panda_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("코끼리_Leg", Resources.LoadAll("Texture/Character/Elepha_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("돼지_Leg", Resources.LoadAll("Texture/Character/Pig_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("원숭이_Leg", Resources.LoadAll("Texture/Character/Monkey_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("치킨_Leg", Resources.LoadAll("Texture/Character/Chicken_Char", typeof(Sprite))[3] as Sprite);
        m_cSpriteMgr.InsertSprite("사자_Leg", Resources.LoadAll("Texture/Character/Lion_Char", typeof(Sprite))[3] as Sprite);


        //obs
        m_cSpriteMgr.InsertSprite("cloudHit", Resources.Load("Texture/cloudHit", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("cloud", Resources.Load("Texture/cloud1", typeof(Sprite)) as Sprite);

        //item
        m_cSpriteMgr.InsertSprite("ForwardWind", Resources.Load("Texture/ForwardWind", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("BackwardWind", Resources.Load("Texture/BackwardWind", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("RouletteKey", Resources.Load("Texture/RouletteKey", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("BulletGet", Resources.Load("Texture/BulletGet", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("ChargeGet", Resources.Load("Texture/ChargeGet", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("UpGo", Resources.Load("Texture/UpGo", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("DownGo", Resources.Load("Texture/DownGo", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("다이아", Resources.Load("Texture/Diamond", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("루비", Resources.Load("Texture/Ruby", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("사파이어", Resources.Load("Texture/Sapphire", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("토파츠", Resources.Load("Texture/Topaz", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("호박", Resources.Load("Texture/Amber", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("에메랄드", Resources.Load("Texture/Emerald", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("코인", Resources.Load("Texture/CoinIcon", typeof(Sprite)) as Sprite);

        //Plane
        m_cSpriteMgr.InsertSprite("나뭇잎_Plane", Resources.Load("Texture/Plane/Leaf1", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("낙옆_Plane", Resources.Load("Texture/Plane/Leaf2", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("종이비행기_Plane", Resources.Load("Texture/Plane/Paper", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("달_Plane", Resources.Load("Texture/Plane/Moon", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("풍선_Plane", Resources.Load("Texture/Plane/Balloon", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("민들래씨앗_Plane", Resources.Load("Texture/Plane/Flower", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("민들래씨앗2_Plane", Resources.Load("Texture/Plane/Flower2", typeof(Sprite)) as Sprite);


        //select plane
        m_cSpriteMgr.InsertSprite("나뭇잎_PlaneSel", Resources.Load("Texture/Selected/Plane/Leaf_PlaneSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("낙옆_PlaneSel", Resources.Load("Texture/Selected/Plane/Maple_PlaneSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("종이비행기_PlaneSel", Resources.Load("Texture/Selected/Plane/Paper_PlaneSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("달_PlaneSel", Resources.Load("Texture/Selected/Plane/Moon_PlaneSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("풍선_PlaneSel", Resources.Load("Texture/Selected/Plane/Balloon_PlaneSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("민들래씨앗_PlaneSel", Resources.Load("Texture/Selected/Plane/Flower_PlaneSel", typeof(Sprite)) as Sprite);
        //select launch
        m_cSpriteMgr.InsertSprite("새총_LauncherSel", Resources.Load("Texture/Selected/Launcher/BirdGun_LaunchSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("투석기_LauncherSel", Resources.Load("Texture/Selected/Launcher/Catapult_LaunchSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("선풍기_LauncherSel", Resources.Load("Texture/Selected/Launcher/Pan_LaunchSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("공룡_LauncherSel", Resources.Load("Texture/Selected/Launcher/Dino_LaunchSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("고릴라_LauncherSel", Resources.Load("Texture/Selected/Launcher/Gorilla_LaunchSel", typeof(Sprite)) as Sprite);
        m_cSpriteMgr.InsertSprite("물로켓_LauncherSel", Resources.Load("Texture/Selected/Launcher/WRocket_LaunchSel", typeof(Sprite)) as Sprite);

        //Select Scene BG
        m_cSpriteMgr.InsertSprite("CharSel_BG", Resources.Load("Texture/UI/CharSelBG", typeof(Sprite)) as Sprite);
        //*/

        //attack obs
        m_cObjectMgr.InsertObject("DrunkBird", Resources.Load("Prefab/DrunkBird", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Alian", Resources.Load("Prefab/Alian", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Dust", Resources.Load("Prefab/Dust", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Virus", Resources.Load("Prefab/Virus", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Virus_Weapon", Resources.Load("Prefab/Virus_Weapon", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Meteo", Resources.Load("Prefab/Meteo", typeof(GameObject)) as GameObject);
        m_cObjectMgr.InsertObject("Spanor", Resources.Load("Prefab/Spanor", typeof(GameObject)) as GameObject);


        m_cDataMgr.InitMgr();

        m_bInit = true;

        //*
        C_GAMEMANAGER.GetInstance().GetJewelMeter().SetCurrentJewelCount("다이아", 999999);
        C_GAMEMANAGER.GetInstance().GetJewelMeter().SetCurrentJewelCount("루비", 999999);
        C_GAMEMANAGER.GetInstance().GetJewelMeter().SetCurrentJewelCount("사파이어", 999999);
        C_GAMEMANAGER.GetInstance().GetJewelMeter().SetCurrentJewelCount("토파츠", 999999);
        C_GAMEMANAGER.GetInstance().GetJewelMeter().SetCurrentJewelCount("호박", 999999);
        C_GAMEMANAGER.GetInstance().GetJewelMeter().SetCurrentJewelCount("에메랄드", 999999);
        C_GAMEMANAGER.GetInstance().SetCoin(9999999);
        C_GAMEMANAGER.GetInstance().SetPlayCount(999);
        //*/
    }
Exemplo n.º 7
0
 public void init(GameObject goMovingPoint, GameObject goGameTile, GameObject goGameImTile, C_PLAYER cPlayer, C_LOADNODE cLoadNode, float fDifficultyHp)
 {
     m_cStage.createStage(goMovingPoint, goGameTile, goGameImTile, cLoadNode);
     m_cStage.getWavePoint().AddComponent <C_ENEMYWAVE>();
     m_cStage.getWavePoint().GetComponent <C_ENEMYWAVE>().setPlayer(cPlayer);
     m_cStage.getWavePoint().GetComponent <C_ENEMYWAVE>().setDifficultyHp(fDifficultyHp);
 }
Exemplo n.º 8
0
 public void buyCoin(C_PLAYER cPlayer)
 {
     cPlayer.addCoin(1, m_nCoinPrice);
 }
Exemplo n.º 9
0
    public int MoveNomal(GameObject goMovingCharecter, Transform[] arTargetTranforms, float fMovingSpeed, int nTargetIndex, C_PLAYER cPlayer)
    {
        Vector3 vecDir = goMovingCharecter.transform.position - arTargetTranforms[nTargetIndex].position;

        goMovingCharecter.transform.Translate(vecDir.normalized * -fMovingSpeed / 1.5f * Time.deltaTime, Space.World);
        goMovingCharecter.transform.LookAt(arTargetTranforms[nTargetIndex]);

        if (Vector3.Distance(goMovingCharecter.transform.position, arTargetTranforms[nTargetIndex].position) <= 0.4f)
        {
            if (nTargetIndex < arTargetTranforms.Length - 1)
            {
                goMovingCharecter.transform.position = arTargetTranforms[nTargetIndex].position;
            }

            nTargetIndex++;
        }

        return(nTargetIndex);
    }