Skip to content

gamee-studio/game-base

Repository files navigation

ContactCard

Gamee base

Description: Gamebase for mobile hyper casual, casual game

Table of contents

Introduce

Install

  • Version: Unity 2022.3.8f1 LTS
  • Type select: Android
  • Module:
    • Android Build Support
    • IOS Build Support
Show install setting

image

Documents

Sound Controller

Adding new sound

  • Add sound by adding new SoundType in file SoundConfig.cs then click Update sound list in SoundConfig scriptable object. image image

Playing sound

SoundController.Instance.PlayBackground(SoundType.Background) or SoundController.Instance.PlayFX(SoundType.Win)

Popup Controller

Adding new popup

  • Step 1: Create a new prefab attaching a script extend an popup interface (for example: public class PopupLose : Popup) image image
  • Step 2: Attach the prefab to PopupController list image

Handling popup

  • Get a popup: PopupController.Instance.Get<PopupInGame>()

  • Show a popup: PopupController.Instance.Show<PopupInGame>()

  • Hide a popup: PopupController.Instance.Hide<PopupInGame>()

  • Here some override functions you can use:

protected virtual void AfterInstantiate() { }
protected virtual void BeforeShow() { }
protected virtual void AfterShown() { }
protected virtual void BeforeHide() { }
protected virtual void AfterHidden() { }

References

Assets Store

Packages

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •