![]() |
Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
|
Add this class to a gameobject, and it'll enable/disable it based on platform context, using Application.platform to detect the platform. More...
Public Types | |
| enum | ExecutionTimes { Awake , Start , OnEnable } |
| the possible times at which this script can run More... | |
Public Attributes | |
| ExecutionTimes | ExecutionTime = ExecutionTimes.Awake |
| the selected execution time | |
| bool | DebugToTheConsole = false |
| whether or not this should output a debug line in the console | |
| List< PlatformBindings > | Platforms |
Protected Member Functions | |
| virtual void | OnEnable () |
| On Enable, processes the state if needed. | |
| virtual void | Awake () |
| On Awake, processes the state if needed. | |
| virtual void | Start () |
| On Start, processes the state if needed. | |
| virtual void | Process () |
| Enables or disables the object based on current platform. | |
| virtual void | DisableIfNeeded (PlatformBindings.PlatformActions platform, string platformName) |
| Disables the object if needed, and outputs a debug log if requested. | |
Add this class to a gameobject, and it'll enable/disable it based on platform context, using Application.platform to detect the platform.
|
protectedvirtual |
On Awake, processes the state if needed.
|
protectedvirtual |
Disables the object if needed, and outputs a debug log if requested.
| platform | |
| platformName |
|
protectedvirtual |
On Enable, processes the state if needed.
|
protectedvirtual |
Enables or disables the object based on current platform.
|
protectedvirtual |
On Start, processes the state if needed.
| bool MoreMountains.Tools.MMApplicationPlatformActivation.DebugToTheConsole = false |
whether or not this should output a debug line in the console
| ExecutionTimes MoreMountains.Tools.MMApplicationPlatformActivation.ExecutionTime = ExecutionTimes.Awake |
the selected execution time
| List<PlatformBindings> MoreMountains.Tools.MMApplicationPlatformActivation.Platforms |