Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 2.12 KB

README.md

File metadata and controls

64 lines (45 loc) · 2.12 KB

Base Game Unity (Andorid & Ios), Use singleton pattern

  • Unity 2022.3 (LTS)

Description: Gamebase for mobile hyper casual, casual game

(Use: Sunflower2 Package)

  • GameFlow
flowchart TB
    subgraph LauncherScene["<i class="fa-brands fa-unity"></i> Launcher Scene"]
    Loading(Loading)
    end

    subgraph ServiceScene["<i class="fa-brands fa-unity"></i> Service Scene"]
    Initialization(Initialization)
    SceneLoader(SceneLoader)
    LevelLoader(LevelLoader)
    AudioManager(AudioManager)
    VisualEffectsSpawner(VisualEffectsSpawner)
    Advertising(Advertising)
    IapManager(IapManager)
    end

    subgraph GameScene["<i class="fa-brands fa-unity"></i> Game Scene"]
    GameManager(GameManager)
    PopupManager(PopupManager)
    end

    GameScene --> AudioManager --> SoundComponent{{Pooling: SoundComponent-AudioSource}}


    Loading --Load (LoadSceneMode.Additive)--> ServiceScene
    Loading --> LoadGameScene --> SceneLoader --Load--> GameScene
    GameManager --> StartGame{Start Game} --> LevelLoader --Instantiate--> Level(Level)
    PopupManager --Show PopupInGame--> StartGame
    Level --Win Level--> WinGame{Win Game} --Next Level-->GameManager
    Level --Lose Level--> LoseGame{Lose Game} --Replay or Skip Level-->GameManager
    Level --Replay Level--> ReplayGame{Replay Game}
    ReplayGame --Replay Level--> GameManager
    PopupManager --Show PopupWin--> WinGame
    PopupManager --Show PopupLose--> LoseGame
Loading

Note

GameConfig Window

  • Shortcut (Ctrl + ~ or Command + ~) to open GameConfig Window

Screenshot 2024-07-26 093159

  • Open the GameConfig script to add or edit configs,

Screenshot 2024-07-26 093403

DebugView

  • Enable Debug View true in GameConfig window
  • Swipe up on the edge (left or right) of the screen to open (shortcut in editor (Alt+D or Option+D))

Unity_9YRD8rJRE1