Infinite Runner Engine v2.2
Loading...
Searching...
No Matches
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

Protected Member Functions

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

Protected Attributes

Animator _explosionAnimator
CameraBehavior _camera

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

◆ _explosionAnimator

Animator MoreMountains.InfiniteRunnerEngine.Watershark._explosionAnimator
protected

◆ 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:
  • Assets/InfiniteRunnerEngine/Common/Scripts/Enemies/Watershark.cs