Beispiel #1
0
        private void InitBeatInfo()
        {
            if (_beatInfo == null)
            {
                _beatInfo = GlobalSystem._Instance._LoadingBeatInfo;
                if (_beatInfo == null && _TestInfo != null)
                {
                    // 목록으로부터 음악이 선택되지 않았다면 테스트용 정보 이용
                    _beatInfo = _TestInfo._BeatInfo;
                }
                if (_beatInfo == null)
                {
                    Debug.LogError("[GameSystem] Invalid BeatInfo");
                }
            }

            if (_logic == null)
            {
                _logic = Activator.CreateInstance(System.Type.GetType("Game." + _beatInfo._namespace + ".GameLogic")) as Game.BaseGameLogic;
                if (_logic == null)
                {
                    Debug.LogError("[GameSystem] Invalid namespcae:" + _beatInfo._namespace);
                }
            }
        }
Beispiel #2
0
        public void Init(string shapeSubPath, float x, float y
                         , Vector2 targetPos, float speed1, float speedRate1
                         , int moveDuration, int stopDuration
                         , float angle2, float angleRate2, float speed2, float speedRate2)
        {
            // 목표지점을 향하는 각도
            float angle1 = BaseGameLogic.CalcluatePointToPointAngle(new Vector2(x, y), targetPos);

            base.Init(shapeSubPath, x, y, angle1, 0.0f, speed1, speedRate1);
            _selfFrame    = 0;
            _targetPos    = targetPos;
            _moveDuration = moveDuration;
            _stopDuration = stopDuration;
            _angle2       = angle2;
            _angleRate2   = angleRate2;
            _speed2       = speed2;
            _speedRate2   = speedRate2;
        }
Beispiel #3
0
        private void InitBeatInfo()
        {
            if (_beatInfo == null)
            {
                _beatInfo = _loadGameInfo;
                if (_beatInfo == null)
                {
                    Debug.LogError("[GameSystem] Invalid BeatInfo");
                    SceneManager.LoadScene(SceneName.beatList);
                }
            }

            if (_logic == null)
            {
                _logic = Activator.CreateInstance(System.Type.GetType("Game." + _beatInfo._namespace + ".GameLogic")) as Game.BaseGameLogic;
                if (_logic == null)
                {
                    Debug.LogError("[GameSystem] Invalid namespcae:" + _beatInfo._namespace);
                }
            }
        }