Infinite Runner Engine v1.9
Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin Class Reference

This class handles the penguin "enemies" in the Flappy Cloud demo level. It's pretty specific. More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin:

Public Attributes

float SkyBottomY
 the Y coordinate above which we want our penguins to appear More...
 
float SkyTopY
 the Y coordinate below which we want our penguins to appear More...
 

Protected Member Functions

void Start ()
 On Start, we determine the middle line between the bottom and top of their spawning zone. More...
 
virtual void OnSpawnComplete ()
 When the penguin becomes activated (when it's spawned by a DistanceSpawner in our case) More...
 

Protected Attributes

float _middleY
 
Renderer _renderer
 
Vector3 _oddVector = new Vector3(1, -1, 1)
 

Detailed Description

This class handles the penguin "enemies" in the Flappy Cloud demo level. It's pretty specific.

Member Function Documentation

◆ OnSpawnComplete()

virtual void MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin.OnSpawnComplete ( )
protectedvirtual

When the penguin becomes activated (when it's spawned by a DistanceSpawner in our case)

◆ Start()

void MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin.Start ( )
protected

On Start, we determine the middle line between the bottom and top of their spawning zone.

Member Data Documentation

◆ _middleY

float MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin._middleY
protected

◆ _oddVector

Vector3 MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin._oddVector = new Vector3(1, -1, 1)
protected

◆ _renderer

Renderer MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin._renderer
protected

◆ SkyBottomY

float MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin.SkyBottomY

the Y coordinate above which we want our penguins to appear

◆ SkyTopY

float MoreMountains.InfiniteRunnerEngine.FlappyCloudPenguin.SkyTopY

the Y coordinate below which we want our penguins to appear


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