Esempio n. 1
0
    /// マップをロードする
    void Load()
    {
        // マップデータの読み込み
        FieldMgr field = new FieldMgr();

        field.Load(nStage);
    }
Esempio n. 2
0
    void Awake()
    {
        duel    = Duel.GetInstance();
        mDeckUI = transform.FindChild("MDeckUI").GetComponent <GameFieldUI>();
        oDeckUI = transform.FindChild("ODeckUI").GetComponent <GameFieldUI>();

        mHandCardUI = transform.FindChild("MHandCard").GetComponent <HandCardUI>();
        oHandCardUI = transform.FindChild("OHandCard").GetComponent <HandCardUI>();
        mHandCardUI.Init();
        oHandCardUI.Init();

        mFieldMgr = transform.FindChild("MField").GetComponent <FieldMgr>();
        oFieldMgr = transform.FindChild("OField").GetComponent <FieldMgr>();
        mFieldMgr.Init(true);
        oFieldMgr.Init(false);

        mLpSliderUI = transform.FindChild("LPSlider_player1").GetComponent <LPSliderUI>();
        oLpSliderUI = transform.FindChild("LPSlider_player2").GetComponent <LPSliderUI>();

        lpChangeUI       = transform.FindChild("lpChangeUI").GetComponent <LPChangeUI>();
        cardEffectAnim   = transform.FindChild("CardEffectAnim").GetComponent <CardEffectAnim>();
        selectEffectUI   = transform.FindChild("SelectEffectUI").GetComponent <SelectEffectUI>();
        phaseButtonMgr   = transform.FindChild("PhaseButton").GetComponent <PhaseButtonMgr>();
        guessFirst       = transform.FindChild("GuessFirst").GetComponent <GuessFirst>();
        floatText        = transform.FindChild("FloatText").GetComponent <FloatText>();
        selectCardShowUI = transform.FindChild("SelectCardShow").GetComponent <SelectCardShowUI>();
        selectPutType    = transform.FindChild("SelectPutType").GetComponent <SelectPutType>();
        mDrawCardAnim    = transform.FindChild("MDrawCardAnim").GetComponent <DrawCardAnim>();
        oDrawCardAnim    = transform.FindChild("ODrawCardAnim").GetComponent <DrawCardAnim>();
        attackAnim       = transform.FindChild("AttackAnim").GetComponent <AttactAnim>();
        roundCounterUI   = GetChild <RoundCountUI>("RoundNumText");

        mChangeAreaAnim = GetChild <ChangeAreaAnim>("MAnim");
        oChangeAreaAnim = GetChild <ChangeAreaAnim>("OAnim");

        chainUICtr = GetChild <ChainUICtr>("ChainUIMgr");

        selectCardMgr = SelectCardMgr.GetInstance();
        optionListUI  = OptionListUI.GetInstance();
        dialogBoxUI   = DialogBoxUI.GetInstance();
        selectCardUI  = SelectCardUI.GetInstance();
        tipPlane      = ErrorPlane.GetInstance();

        selectCardMgr.Init();
        phaseButtonMgr.Init();
        selectEffectUI.Init();
        cardEffectAnim.Init();
        lpChangeUI.Init();
        optionListUI.Init();
        dialogBoxUI.Init();
        selectCardUI.Init();
        selectPutType.Init();
        attackAnim.Init();
    }
Esempio n. 3
0
    public void Init()
    {
        mFieldMgr   = transform.FindChild("MField").GetComponent <FieldMgr>();
        oFieldMgr   = transform.FindChild("OField").GetComponent <FieldMgr>();
        mHandCardUI = transform.FindChild("MHandCard").GetComponent <HandCardUI>();
        oHandCardUI = transform.FindChild("OHandCard").GetComponent <HandCardUI>();

        curGroup    = new Group();
        selectGroup = new Group();

        duel = Duel.GetInstance();

        AddHandler(DuelEvent.netEvent_ReciveSelectFieldCard, ReciveSelectFieldCard);
        AddHandler(DuelEvent.playBackEvent_SelectFieldCard, PlayBackSelectFieldCard);
    }
Esempio n. 4
0
    // 開始
    void Start()
    {
        pad = new Pad();

        field = new FieldMgr();

        // 壁オブジェクト管理生成
        Wall.parent = new TokenMgr <Wall> ("Wall", 128);

        // 移動床オブジェクト管理作成
        FloorMove.parent = new TokenMgr <FloorMove> ("FloorMove", 32);

        // パーティクル管理作成
        Particle.parent = new TokenMgr <Particle> ("Particle", 32);

        // トゲ監理生成
        Spike.parent = new TokenMgr <Spike> ("Spike", 32);

        // マップデータの読み込み
        Load(nStage);
    }
Esempio n. 5
0
    public void Init(FieldMgr field, bool _isMy)
    {
        fieldMgr = field;
        isMy     = _isMy;
        image    = transform.FindChild("cardImage").GetComponent <RawImage>();

        attackAnimUI = transform.FindChild("attackAnimUI").GetComponent <AttackAnimUI>();
        selectAnim   = transform.FindChild("selectAnim").GetComponent <DashedAnim>();

        foreach (Text t in this.GetComponentsInChildren <Text>())
        {
            if (t.name == "AfkText")
            {
                AfkText = t;
            }
            if (t.name == "DefText")
            {
                DefText = t;
            }
            if (t.name == "LevelText")
            {
                LevelText = t;
            }
            if (t.name == "SpritText")
            {
                SpritText = t;
            }
        }
        attackAnimUI.Init(isMy);
        HideAttackAnim();
        isInSelect     = false;
        isSelect       = false;
        AfkText.text   = "";
        DefText.text   = "";
        LevelText.text = "";
        SpritText.text = "";
    }
Esempio n. 6
0
    void Load()
    {
        FieldMgr field = new FieldMgr();

        field.Load(nStage);
    }
Esempio n. 7
0
 // マップをロードする
 void Load()
 {
     // マップデータの読み込み
     FieldMgr field = new FieldMgr ();
     field.Load (nStage);
 }