コード例 #1
0
    // Use this for initialization
    void Start()
    {
        Screen.SetResolution(RESOULUTION_WIDTH, RESOULUTION_HEIGHT, false);

        _circle.Initialize();

        _scaleData = new ScaleData();
        _timeData = new TimeData();
        _speedData = new SpeedData();

        _wallType = new Vector3[4] { Vector3.up, Vector3.down, Vector3.left, Vector3.right };

        _circle.SetColor(new Color(92/255.0f, 167/255.0f, 219/255.0f)); // 임시 색

        _currentStage = 1;
        _isWait = false;
        SetStage(_currentStage);
        StartCoroutine(PlayGame(_currentStage, WAITING_TIME));

        // 단계 설정 (임시)
        //_gamePatternList = new List<GamePattern>();
        //_gamePatternList.Add(new GamePattern(_scaleData, _scaleData.Value, GetRandomPosition(RESOULUTION_WIDTH, RESOULUTION_HEIGHT, _circle.TextureSize, _circle.Scale), VECTOR3_EMPTY, Mathf.Infinity));
    }