Corgi Engine v9.4
Loading...
Searching...
No Matches
MoreMountains.Tools.MMActivationOnStart Class Reference

Use this class to enable or disable other gameobjects automatically on Start or Awake. More...

Inheritance diagram for MoreMountains.Tools.MMActivationOnStart:

Public Types

enum  Modes { Awake , Start }
 The possible modes that define whether this should run at Awake or Start. More...

Public Attributes

Modes Mode = Modes.Start
 the selected mode for this instance
bool StateOnStart = true
 if true, objects will be activated on start, disabled otherwise
List< GameObject > TargetObjects
 the list of gameobjects whose active state will be affected on start

Protected Member Functions

virtual void Awake ()
 On Awake, we set our state if needed.
virtual void Start ()
 On Start, we set our state if needed.
virtual void SetState ()
 Sets the state of all target objects.

Detailed Description

Use this class to enable or disable other gameobjects automatically on Start or Awake.

Member Enumeration Documentation

◆ Modes

The possible modes that define whether this should run at Awake or Start.

Enumerator
Awake 
Start 

Member Function Documentation

◆ Awake()

virtual void MoreMountains.Tools.MMActivationOnStart.Awake ( )
protectedvirtual

On Awake, we set our state if needed.

◆ SetState()

virtual void MoreMountains.Tools.MMActivationOnStart.SetState ( )
protectedvirtual

Sets the state of all target objects.

◆ Start()

virtual void MoreMountains.Tools.MMActivationOnStart.Start ( )
protectedvirtual

On Start, we set our state if needed.

Member Data Documentation

◆ Mode

Modes MoreMountains.Tools.MMActivationOnStart.Mode = Modes.Start

the selected mode for this instance

◆ StateOnStart

bool MoreMountains.Tools.MMActivationOnStart.StateOnStart = true

if true, objects will be activated on start, disabled otherwise

◆ TargetObjects

List<GameObject> MoreMountains.Tools.MMActivationOnStart.TargetObjects

the list of gameobjects whose active state will be affected on start


The documentation for this class was generated from the following file: