Floating Item

Presented by FloatingItem class, it makes gameobject continuously move up and down with certain amplitude and speed. This movement automatically begins when its gameobject becomes active on scene.

Floating Item component

Parameters in inspector

Floating Amplitude – movement amplitude

Floating Speed – movement speed


Available methods

public void Restart()

This method instantly moves gameobject to initial position.

Last updated