platformer
|
UnityPlatformer Configuration behaviour. More...
Static Public Member Functions | |
static bool | IsOneWayPlatformUp (GameObject obj) |
check if given GameObject has a the tag oneWayPlatformUpTag More... | |
static bool | IsOneWayPlatformUp (Collider2D obj) |
check if given Collider2D has a the tag oneWayPlatformUpTag More... | |
static bool | IsOneWayPlatformDown (GameObject obj) |
check if given GameObject has a the tag oneWayPlatformDownTag More... | |
static bool | IsOneWayPlatformDown (Collider2D obj) |
check if given Collider2D has a the tag oneWayPlatformDownTag More... | |
static bool | IsOneWayWallLeft (GameObject obj) |
check if given GameObject has a the tag oneWayWallLeftTag More... | |
static bool | IsOneWayWallLeft (Collider2D obj) |
check if given Collider2D has a the tag oneWayWallLeftTag More... | |
static bool | IsOneWayWallRight (GameObject obj) |
check if given GameObject has a the tag onwWayWallRightTag More... | |
static bool | IsOneWayWallRight (Collider2D obj) |
check if given Collider2D has a the tag onwWayWallRightTag More... | |
static bool | IsMovingPlatformThrough (GameObject obj) |
check if given GameObject has a the tag movingPlatformThroughTag More... | |
static bool | IsMovingPlatformThrough (Collider2D obj) |
check if given Collider2D has a the tag movingPlatformThroughTag More... | |
static bool | IsMovingPlatform (GameObject obj) |
check if given GameObject has a the tag movingPlatformTag More... | |
static bool | IsMovingPlatform (Collider2D obj) |
check if given Collider2D has a the tag movingPlatformTag More... | |
static bool | IsBox (GameObject obj) |
check if given GameObject has a the tag boxTag More... | |
static bool | IsBox (Collider2D obj) |
check if given Collider2D has a the tag boxTag More... | |
static Character | GetNearestPlayer (Vector3 position) |
Get nearest player to given position More... | |
![]() | |
static void | ClearInstance () |
This method is for testing purposes only, you should not called it in your application More... | |
Public Attributes | |
Vector2 | gravity = Vector2.zero |
Global gravity. Can be overriden by Character.gravity More... | |
float | minDistanceToEnv = 0.1f |
Global min distance to Environment More... | |
string | playerTag = "Player" |
Player tag More... | |
string | oneWayPlatformUpTag = "OneWayPlatformUp" |
one-way-platform up tag More... | |
string | oneWayPlatformDownTag = "OneWayPlatformDown" |
one-way-platform down tag More... | |
string | oneWayWallLeftTag = "OneWayWallLeft" |
one-way-platform left tag More... | |
string | onwWayWallRightTag = "OneWayWallRight" |
one-way-platform right tag More... | |
string | movingPlatformThroughTag = "MovingPlatformThrough" |
moving platform through tag More... | |
string | movingPlatformTag = "MovingPlatform" |
moving platform tag More... | |
string | enemyTag = "Enemy" |
enemy tag More... | |
string | projectileTag = "Projectile" |
projectile tag More... | |
string | boxTag = "Box" |
box tag More... | |
int | cooldownsPriority = 100 |
Cooldown priority, should be the highest so when updating anything else cooldowns are updated first More... | |
int | movingPlatformsPriority = 50 |
Moving platform priority More... | |
int | charactersPriority = 30 |
Characters priority More... | |
int | enemiesPriority = 30 |
Enemies priority More... | |
int | projectilesPriority = 20 |
Projectile priority More... | |
int | defaultPriority = 10 |
Default priority More... | |
string | staticGeometryLayerName = "StaticGeometry" |
Mask name for static geometry More... | |
LayerMask | staticGeometryMask |
Mask for static geometry More... | |
string | laddersLayerName = "Ladders" |
Mask name for Ladders More... | |
LayerMask | laddersMask |
Mask for Ladders More... | |
string | fencesLayerName = "Fences" |
Mask name for Fences More... | |
LayerMask | fencesMask |
Mask for Fences More... | |
string | ropesLayerName = "Ropes" |
Mask name for Ropes More... | |
LayerMask | ropesMask |
Mask for Ropes More... | |
string | hitBoxesLayerName = "HitBoxes" |
Mask name for HitBoxes More... | |
LayerMask | hitBoxesMask |
Mask for HitBoxes More... | |
string | playersLayerName = "Players" |
Mask name for Players More... | |
LayerMask | playersMask |
Mask for Players More... | |
string | enemiesLayerName = "Enemies" |
Mask name for Enemies More... | |
LayerMask | enemiesMask |
Mask for Enemies More... | |
string | grabablesLayerName = "Grabables" |
Mask name for Grabables More... | |
LayerMask | grabablesMask |
Mask for Grabables More... | |
string | liquidsLayerName = "Liquids" |
Mask name for Liquids More... | |
LayerMask | liquidsMask |
Mask for Liquids More... | |
string | boxesLayerName = "Boxes" |
Mask name for Boxes More... | |
LayerMask | boxesMask |
Mask for Boxes More... | |
string | tracksLayerName = "Tracks" |
Mask name for Tracks More... | |
LayerMask | tracksMask |
Mask for Tracks More... | |
string | itemsLayerName = "Items" |
Mask name for Items More... | |
LayerMask | itemsMask |
Mask for Items More... | |
string | projectilesLayerName = "Projectiles" |
Mask name for Items More... | |
LayerMask | projectilesMask |
Mask for Items More... | |
LayerMask | recieveDamageMask |
Mask for HitBoxes with type RecieveDamage More... | |
LayerMask | dealDamageMask |
Mask for HitBoxes with type DealDamage More... | |
LayerMask | enterAreasMask |
Mask for HitBoxes with type EnterAreas More... | |
Additional Inherited Members | |
![]() | |
static T | _instance |
Singleton instance More... | |
![]() | |
static T | instance [get] |
Singleton instance retrieval More... | |
UnityPlatformer Configuration behaviour.
It's a singleton and must be included in every scene.
We recommended you to prefab this.
NOTE executionOrder should be -100
|
inlinestatic |
Get nearest player to given position
|
inlinestatic |
check if given GameObject has a the tag boxTag
|
inlinestatic |
check if given Collider2D has a the tag boxTag
|
inlinestatic |
check if given GameObject has a the tag movingPlatformTag
|
inlinestatic |
check if given Collider2D has a the tag movingPlatformTag
|
inlinestatic |
check if given GameObject has a the tag movingPlatformThroughTag
|
inlinestatic |
check if given Collider2D has a the tag movingPlatformThroughTag
|
inlinestatic |
check if given GameObject has a the tag oneWayPlatformDownTag
|
inlinestatic |
check if given Collider2D has a the tag oneWayPlatformDownTag
|
inlinestatic |
check if given GameObject has a the tag oneWayPlatformUpTag
|
inlinestatic |
check if given Collider2D has a the tag oneWayPlatformUpTag
|
inlinestatic |
check if given GameObject has a the tag oneWayWallLeftTag
|
inlinestatic |
check if given Collider2D has a the tag oneWayWallLeftTag
|
inlinestatic |
check if given GameObject has a the tag onwWayWallRightTag
|
inlinestatic |
check if given Collider2D has a the tag onwWayWallRightTag
string UnityPlatformer.Configuration.boxesLayerName = "Boxes" |
Mask name for Boxes
LayerMask UnityPlatformer.Configuration.boxesMask |
Mask for Boxes
string UnityPlatformer.Configuration.boxTag = "Box" |
box tag
int UnityPlatformer.Configuration.charactersPriority = 30 |
Characters priority
int UnityPlatformer.Configuration.cooldownsPriority = 100 |
Cooldown priority, should be the highest so when updating anything else cooldowns are updated first
LayerMask UnityPlatformer.Configuration.dealDamageMask |
Mask for HitBoxes with type DealDamage
int UnityPlatformer.Configuration.defaultPriority = 10 |
Default priority
string UnityPlatformer.Configuration.enemiesLayerName = "Enemies" |
Mask name for Enemies
LayerMask UnityPlatformer.Configuration.enemiesMask |
Mask for Enemies
int UnityPlatformer.Configuration.enemiesPriority = 30 |
Enemies priority
string UnityPlatformer.Configuration.enemyTag = "Enemy" |
enemy tag
LayerMask UnityPlatformer.Configuration.enterAreasMask |
Mask for HitBoxes with type EnterAreas
string UnityPlatformer.Configuration.fencesLayerName = "Fences" |
Mask name for Fences
LayerMask UnityPlatformer.Configuration.fencesMask |
Mask for Fences
string UnityPlatformer.Configuration.grabablesLayerName = "Grabables" |
Mask name for Grabables
LayerMask UnityPlatformer.Configuration.grabablesMask |
Mask for Grabables
Vector2 UnityPlatformer.Configuration.gravity = Vector2.zero |
Global gravity. Can be overriden by Character.gravity
string UnityPlatformer.Configuration.hitBoxesLayerName = "HitBoxes" |
Mask name for HitBoxes
LayerMask UnityPlatformer.Configuration.hitBoxesMask |
Mask for HitBoxes
string UnityPlatformer.Configuration.itemsLayerName = "Items" |
Mask name for Items
LayerMask UnityPlatformer.Configuration.itemsMask |
Mask for Items
string UnityPlatformer.Configuration.laddersLayerName = "Ladders" |
Mask name for Ladders
LayerMask UnityPlatformer.Configuration.laddersMask |
Mask for Ladders
string UnityPlatformer.Configuration.liquidsLayerName = "Liquids" |
Mask name for Liquids
LayerMask UnityPlatformer.Configuration.liquidsMask |
Mask for Liquids
float UnityPlatformer.Configuration.minDistanceToEnv = 0.1f |
Global min distance to Environment
int UnityPlatformer.Configuration.movingPlatformsPriority = 50 |
Moving platform priority
string UnityPlatformer.Configuration.movingPlatformTag = "MovingPlatform" |
moving platform tag
string UnityPlatformer.Configuration.movingPlatformThroughTag = "MovingPlatformThrough" |
moving platform through tag
string UnityPlatformer.Configuration.oneWayPlatformDownTag = "OneWayPlatformDown" |
one-way-platform down tag
string UnityPlatformer.Configuration.oneWayPlatformUpTag = "OneWayPlatformUp" |
one-way-platform up tag
string UnityPlatformer.Configuration.oneWayWallLeftTag = "OneWayWallLeft" |
one-way-platform left tag
string UnityPlatformer.Configuration.onwWayWallRightTag = "OneWayWallRight" |
one-way-platform right tag
string UnityPlatformer.Configuration.playersLayerName = "Players" |
Mask name for Players
LayerMask UnityPlatformer.Configuration.playersMask |
Mask for Players
string UnityPlatformer.Configuration.playerTag = "Player" |
Player tag
string UnityPlatformer.Configuration.projectilesLayerName = "Projectiles" |
Mask name for Items
LayerMask UnityPlatformer.Configuration.projectilesMask |
Mask for Items
int UnityPlatformer.Configuration.projectilesPriority = 20 |
Projectile priority
string UnityPlatformer.Configuration.projectileTag = "Projectile" |
projectile tag
LayerMask UnityPlatformer.Configuration.recieveDamageMask |
Mask for HitBoxes with type RecieveDamage
string UnityPlatformer.Configuration.ropesLayerName = "Ropes" |
Mask name for Ropes
LayerMask UnityPlatformer.Configuration.ropesMask |
Mask for Ropes
string UnityPlatformer.Configuration.staticGeometryLayerName = "StaticGeometry" |
Mask name for static geometry
LayerMask UnityPlatformer.Configuration.staticGeometryMask |
Mask for static geometry
string UnityPlatformer.Configuration.tracksLayerName = "Tracks" |
Mask name for Tracks
LayerMask UnityPlatformer.Configuration.tracksMask |
Mask for Tracks