C# Class AquaSphereMini.Shrimp

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: fi-content2-games-platform/FIcontent.Gaming.Enabler.phenomobilecharactermanager

Public Properties

Property Type Description
acceleration float
aiSpeed float
direction float
maxSpeed float
minSpeed float
rotation float
speed float

Public Methods

Method Description
OnDisable ( ) : void
OnEnable ( ) : void
ProcessCharacterEvent ( string eventId, string param ) : void
Update ( ) : void

Private Methods

Method 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 method

public OnDisable ( ) : void
return void

OnEnable() public method

public OnEnable ( ) : void
return void

ProcessCharacterEvent() public method

public ProcessCharacterEvent ( string eventId, string param ) : void
eventId string
param string
return void

Update() public method

public Update ( ) : void
return void

Property Details

acceleration public_oe property

public float acceleration
return float

aiSpeed public_oe property

public float aiSpeed
return float

direction public_oe property

public float direction
return float

maxSpeed public_oe property

public float maxSpeed
return float

minSpeed public_oe property

public float minSpeed
return float

rotation public_oe property

public float rotation
return float

speed public_oe property

public float speed
return float