コード例 #1
0
    void Start()
    {
        mTileManager = gameObject.GetComponent<TileManager>();
        mTotalTileCount = mTileManager.GetTileColumnsCount();

        mFire = new bool[FIRE_COUNT];

        float bps = beatsPerMinute / 60.0f;
        mTimePerBeat = 1.0f / bps;

        //startDelay = 2;
        startDelay = ((startDelay * mTimePerBeat) * mTotalTileCount) * -1;
        mCurrentDelay = startDelay;

        mTimePerBeat /= (float)FIRE_COUNT;

        mCurrentTime = 0.0f;
        mSixteenthCount = 0;
        mCurrentTileCount = 0;

        mBeatsPerMinuteDivided = beatsPerMinute / 100.0f;
    }