Exemple #1
0
 // Start is called before the first frame update
 void Start()
 {
     m_letter = new LetterCard(new Vector3(0, 0, 0));
     m_letter.SetActive(true);
     m_letter.SetTimeUnit(1.0f);
     m_letter.SetSpeed(720.0f);
 }
Exemple #2
0
        // Start is called before the first frame update
        void Start()
        {
            m_letterCards = new LetterCard[30, 20];

            for (int i = 0; i < 30; i++)
            {
                for (int j = 0; j < 20; j++)
                {
                    m_letterCards[i, j] = new LetterCard(m_begainPos + new Vector3(i * 2, j * 2, 0));
                    m_letterCards[i, j].SetActive(true);
                    m_letterCards[i, j].SetActive(true);
                    m_letterCards[i, j].SetTimeUnit(Random.Range(1.0f, 3.0f));
                    m_letterCards[i, j].SetSpeed(720.0f);
                }
            }
        }
Exemple #3
0
        // Start is called before the first frame update
        void Start()
        {
            m_letterCards = new LetterCard[30, 20];

            for (int i = 0; i < 30; i++)
            {
                for (int j = 0; j < 20; j++)
                {
                    m_letterCards[i, j] = new LetterCard(m_begainPos + new Vector3(i * 2, j * 2, 0));

                    m_letterCards[i, j].SetActive(false);

                    m_letterCards[i, j].SetWaveState(true);

                    m_letterCards[i, j].SetTimeUnit(1.0f);
                    m_letterCards[i, j].SetSpeed(360.0f);
                }
            }
        }