Click or drag to resize
GameBehaviour Class
Interface between Unity and the core game logic.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          Slash.Unity.Common.ECSGameBehaviour

Namespace: Slash.Unity.Common.ECS
Assembly: Slash.Unity.Common (in Slash.Unity.Common.dll) Version: 1.0.6018.40182
Syntax
public class GameBehaviour : MonoBehaviour

The GameBehaviour type exposes the following members.

Constructors
  NameDescription
Public methodGameBehaviour
Initializes a new instance of the GameBehaviour class
Top
Properties
  NameDescription
Public propertyGame
Current game instance.
Public propertyGameConfiguration
Behaviour to manage game configuration.
Public propertyStatic memberInstance
Top
Methods
  NameDescription
Protected methodOnDestroy
Public methodStartGame
Starts the specified game with the current configuration, notifying interested listeners of the new game.
Top
Events
  NameDescription
Public eventGameChanged
Current game has changed.
Top
Fields
  NameDescription
Public fieldFrameCounter
Number of frames while behaviour was enabled.
Public fieldStartImmediately
Whether to start the game immediately when the scene is loaded.
Public fieldUpdatePeriod
Update period of game (in s). 0 if no fixed update.
Top
See Also