コード例 #1
0
    void Start()
    {
        if (_PlayerPrefab == null ||
            _EnemyPrefabs == null ||
            _Camera == null ||
            _PlayerSpownPoint == null ||
            _EnemySpownPoints == null)
        {
            Debug.Log("ERROR GameManager Start");
        }
        _MapManager.SetUp();

        SetUpCharactor();

        _MapPanelManager.SetUp();

        SetUpCamera();

        _SaveManager.SetUp();

        SetUpInputManager();

        // キー入力待ちにする
        GameSequence = eSequence.KEY_INPUT;
    }
コード例 #2
0
    void Update()
    {
        if (GameSequence == eSequence.PLAYER_MOVE_END)
        {
            for (int i = 0; i < _EnemyPrefabs.Length; i++)
            {
                _Enemys[i].Move(OldDir);
            }
        }

        if (GameSequence == eSequence.ENEMY_MOVE_END)
        {
            GameSequence = eSequence.KEY_INPUT;
        }
    }