C# Class AquaSphereMini.Shrimp

Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager

Méthodes publiques

Свойство Type Description
acceleration float
aiSpeed float
direction float
maxSpeed float
minSpeed float
rotation float
speed float

Méthodes publiques

Méthode Description
OnDisable ( ) : void
OnEnable ( ) : void
ProcessCharacterEvent ( string eventId, string param ) : void
Update ( ) : void

Private Methods

Méthode Description
ExecuteAI ( ) : void

This function will executed itself preidically and will change the current speed and direction based on random number.

Update3DModel ( ) : void

This function will update the model with position and rotation by speed and direction.

UpdateAnimation ( ) : void

This function will update the speed of animation, so it will give better match with current moves.

Method Details

OnDisable() public méthode

public OnDisable ( ) : void
Résultat void

OnEnable() public méthode

public OnEnable ( ) : void
Résultat void

ProcessCharacterEvent() public méthode

public ProcessCharacterEvent ( string eventId, string param ) : void
eventId string
param string
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void

Property Details

acceleration public_oe property

public float acceleration
Résultat float

aiSpeed public_oe property

public float aiSpeed
Résultat float

direction public_oe property

public float direction
Résultat float

maxSpeed public_oe property

public float maxSpeed
Résultat float

minSpeed public_oe property

public float minSpeed
Résultat float

rotation public_oe property

public float rotation
Résultat float

speed public_oe property

public float speed
Résultat float