Platformer Pro  2.3.2
A platform game kit for Unity.
PlatformerPro.MultiPlatformEnabler Class Reference

Enables or Disables items based on the platform. More...

Inheritance diagram for PlatformerPro.MultiPlatformEnabler:

Static Public Member Functions

static bool IsLargeTouchScreen ()
 Returns true if the screen is large touch screen (i.e. a tablet). You often want to draw things like controls differently in this case. More...
 

Public Attributes

MultiPlatformEnablerType enablerType
 What does this enabler do? More...
 
MultiPlatformEnablerCondition[] conditions
 The conditions to check. More...
 

Protected Member Functions

virtual void DoActions ()
 Do the actionsfor the matched conditions. More...
 
virtual bool IsMatched (MultiPlatformEnablerCondition c)
 Returns true if the condition applies. More...
 

Detailed Description

Enables or Disables items based on the platform.

Member Function Documentation

◆ DoActions()

virtual void PlatformerPro.MultiPlatformEnabler.DoActions ( )
protectedvirtual

Do the actionsfor the matched conditions.

◆ IsLargeTouchScreen()

static bool PlatformerPro.MultiPlatformEnabler.IsLargeTouchScreen ( )
static

Returns true if the screen is large touch screen (i.e. a tablet). You often want to draw things like controls differently in this case.

Returns
true if is large touch screen; otherwise, false.

◆ IsMatched()

virtual bool PlatformerPro.MultiPlatformEnabler.IsMatched ( MultiPlatformEnablerCondition  c)
protectedvirtual

Returns true if the condition applies.

Returns
true if the condition is matched; otherwise, false.
Parameters
cCondition.

Member Data Documentation

◆ conditions

MultiPlatformEnablerCondition [] PlatformerPro.MultiPlatformEnabler.conditions

The conditions to check.

◆ enablerType

MultiPlatformEnablerType PlatformerPro.MultiPlatformEnabler.enablerType

What does this enabler do?


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