🍬
Gummi
  • Welcome to Gummi
  • Installation
  • Repo
  • API Documentation
    • Core
      • Attributes
        • DisableIf(string Target)
        • DisableIf(string Target, object Benchmark)
        • EnableIf(string Target)
        • EnableIf(string Target, object Benchmark)
        • HideIf(string Target)
        • HideIf(string Target, object Benchmark)
        • ShowIfstring Target)
        • ShowIf(string Target, object Benchmark)
        • SOExposed
        • VisibleBaseAttribute
        • ReadOnly
      • Extensions
        • GenericExtensions
        • IntExtensions
        • ListExtensions
    • MVC
      • RootController
      • SubController
      • SubController<enum, uiView>
      • UIView
    • Singletons
      • Singleton
      • Persistent Singleton
      • Lazy Singleton
      • Persistent Lazy Singleton
    • Utility
      • MDDocumentation
      • Optional
Powered by GitBook
On this page
  • Summary
  • Fields
  • Methods
  1. API Documentation
  2. MVC

RootController

PreviousMVCNextSubController

Last updated 3 years ago

namespace: Inherits: MonoBehaviour

Summary

A base class for implementing an application's root controller. enum contains values for the possible states the application is allowed to be in.

Intented use includes a singlular derived instance of this class in a scene. Though, more than one may be used.

Fields

public static T Instance: The instance of T in the scene. It will never be null. If there is not an instance in the scene, a new instance will be made/returned.

Methods

protected abstract SubController<enum> GetController(enum state): maps possible application states to SubControllers.

public void ChangeController(enum state): disengages all SubControllers and engages the SubController mapped to state.

public void DisengageController(): disengages all SubControllers.

Gummi.Pattern.MVC