Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feel.SnakeBodyPart Class Reference

A class used to handle Feel's Snake demo's snake bodyparts. More...

Inheritance diagram for MoreMountains.Feel.SnakeBodyPart:

Public Member Functions

virtual void Eat (float intensity)
 Called when the snake eats a new food.
virtual void New ()
 Called when instantiating a new body part.

Public Attributes

MMPositionRecorder TargetRecorder
 a position recorder this body part will look at to know where to go to
MMFeedbacks EatFeedback
 a feedback to play when food gets eaten
MMFeedbacks NewFeedback
 a feedback to play when this part appears
int Offset = 20
int Index = 0

Protected Member Functions

virtual void Awake ()
 On awake we store our collider and enable it after a delay.
virtual IEnumerator ActivateCollider ()
 Activates this part's collider.
void Update ()
 On update, we move to the recorded position of our predecessor.

Protected Attributes

Snake _snake

Detailed Description

A class used to handle Feel's Snake demo's snake bodyparts.

Member Function Documentation

◆ ActivateCollider()

virtual IEnumerator MoreMountains.Feel.SnakeBodyPart.ActivateCollider ( )
protectedvirtual

Activates this part's collider.

Returns

◆ Awake()

virtual void MoreMountains.Feel.SnakeBodyPart.Awake ( )
protectedvirtual

On awake we store our collider and enable it after a delay.

◆ Eat()

virtual void MoreMountains.Feel.SnakeBodyPart.Eat ( float intensity)
virtual

Called when the snake eats a new food.

Parameters
intensity

◆ New()

virtual void MoreMountains.Feel.SnakeBodyPart.New ( )
virtual

Called when instantiating a new body part.

◆ Update()

void MoreMountains.Feel.SnakeBodyPart.Update ( )
protected

On update, we move to the recorded position of our predecessor.

Member Data Documentation

◆ _snake

Snake MoreMountains.Feel.SnakeBodyPart._snake
protected

◆ EatFeedback

MMFeedbacks MoreMountains.Feel.SnakeBodyPart.EatFeedback

a feedback to play when food gets eaten

◆ Index

int MoreMountains.Feel.SnakeBodyPart.Index = 0

◆ NewFeedback

MMFeedbacks MoreMountains.Feel.SnakeBodyPart.NewFeedback

a feedback to play when this part appears

◆ Offset

int MoreMountains.Feel.SnakeBodyPart.Offset = 20

◆ TargetRecorder

MMPositionRecorder MoreMountains.Feel.SnakeBodyPart.TargetRecorder

a position recorder this body part will look at to know where to go to


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/FeelDemos/Snake/Scripts/SnakeBodyPart.cs