C# Class AnglerFish, MazeToddler

Inheritance: MonoBehaviour
Show file Open project: Nexters/MazeToddler

Public Properties

Property Type Description
appearedObject GameObject
happySprite Sprite
hidingObject GameObject
player Transform
playerDetectDistance float
pushBackForce float
speechBubble GameObject

Public Methods

Method Description
Awake ( ) : void
DestroySelf ( ) : void
Hide ( ) : void
HideAndDestroySelf ( ) : void
Hided ( ) : void
HidingAtFirst ( ) : void
OnTriggerEnter2D ( Collider2D col ) : void
OnTriggerExit2D ( Collider2D col ) : void
Update ( ) : void

Private Methods

Method Description
Appear ( Collider2D col ) : IEnumerator
PlayerFarAway ( ) : bool
ShowSpeechBubble ( ) : IEnumerator
_HideAndDestroySelf ( ) : IEnumerator

Method Details

Awake() public method

public Awake ( ) : void
return void

DestroySelf() public method

public DestroySelf ( ) : void
return void

Hide() public method

public Hide ( ) : void
return void

HideAndDestroySelf() public method

public HideAndDestroySelf ( ) : void
return void

Hided() public method

public Hided ( ) : void
return void

HidingAtFirst() public method

public HidingAtFirst ( ) : void
return void

OnTriggerEnter2D() public method

public OnTriggerEnter2D ( Collider2D col ) : void
col UnityEngine.Collider2D
return void

OnTriggerExit2D() public method

public OnTriggerExit2D ( Collider2D col ) : void
col UnityEngine.Collider2D
return void

Update() public method

public Update ( ) : void
return void

Property Details

appearedObject public property

public GameObject appearedObject
return GameObject

happySprite public property

public Sprite happySprite
return Sprite

hidingObject public property

public GameObject hidingObject
return GameObject

player public property

public Transform player
return Transform

playerDetectDistance public property

public float playerDetectDistance
return float

pushBackForce public property

public float pushBackForce
return float

speechBubble public property

public GameObject speechBubble
return GameObject