コード例 #1
0
        public GameObject GetExplosionObject(BlockQuestType questType)
        {
            switch (questType)
            {
            case BlockQuestType.CLEAR_SIMPLE:
                return(Instantiate(explosion) as GameObject);

            default:
                return(Instantiate(explosion) as GameObject);
            }
        }
コード例 #2
0
        //---------------------------------------------------------------------
        // Constructor
        //---------------------------------------------------------------------

        public Block(BlockType blockType)
        {
            m_BlockType = blockType;

            status    = BlockStatus.NORMAL;
            questType = BlockQuestType.CLEAR_SIMPLE;
            match     = MatchType.NONE;
            m_Breed   = BlockBreed.NA;

            m_nDurability = 1;
        }