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

This class handles the behavior of the watershark enemies that appear in the dragon level More...

Inheritance diagram for MoreMountains.InfiniteRunnerEngine.Watershark:

Public Attributes

GameObject Explosion
 the explosion gameobject that we'll make appear when the shark collides with the player More...
 

Protected Member Functions

virtual void OnTriggerEnter2D (Collider2D collidingObject)
 Triggered when the shark collides with the player More...
 

Protected Attributes

Animator _explosionAnimator
 the associated animator More...
 
CameraBehavior _camera
 the camera More...
 

Detailed Description

This class handles the behavior of the watershark enemies that appear in the dragon level

Member Function Documentation

◆ OnTriggerEnter2D()

virtual void MoreMountains.InfiniteRunnerEngine.Watershark.OnTriggerEnter2D ( Collider2D  collidingObject)
protectedvirtual

Triggered when the shark collides with the player

Parameters
collidingObjectthe object that collides with our shark.

Member Data Documentation

◆ _camera

CameraBehavior MoreMountains.InfiniteRunnerEngine.Watershark._camera
protected

the camera

◆ _explosionAnimator

Animator MoreMountains.InfiniteRunnerEngine.Watershark._explosionAnimator
protected

the associated animator

◆ Explosion

GameObject MoreMountains.InfiniteRunnerEngine.Watershark.Explosion

the explosion gameobject that we'll make appear when the shark collides with the player


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