C# Класс geek.GameEngine.Utils.Timeline

A class that can execute events at given points of time.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
IsLooped bool
Paused bool

Открытые методы

Метод Описание
Add ( float time, System.Action action, string comment = null ) : int

Add a keyframe to the list.

AddAbsolute ( float time, System.Action action, string comment = null ) : int
Remove ( int id ) : void

Remove a keyframe by it's ID.

Timeline ( ) : System
Update ( ) : void

Update the timeline and execute current action.

Приватные методы

Метод Описание
clearSkipped ( ) : void
shiftCurrent ( ) : void

Описание методов

Add() публичный Метод

Add a keyframe to the list.
public Add ( float time, System.Action action, string comment = null ) : int
time float Desired time.
action System.Action Desired action.
comment string Optional debugging comment.
Результат int

AddAbsolute() публичный Метод

public AddAbsolute ( float time, System.Action action, string comment = null ) : int
time float
action System.Action
comment string
Результат int

Remove() публичный Метод

Remove a keyframe by it's ID.
public Remove ( int id ) : void
id int Keyframe's unique ID in the timeline returned by 'Add' method.
Результат void

Timeline() публичный Метод

public Timeline ( ) : System
Результат System

Update() публичный Метод

Update the timeline and execute current action.
public Update ( ) : void
Результат void

Описание свойств

IsLooped публичное свойство

Gets or sets the looping flag.
public bool IsLooped
Результат bool

Paused публичное свойство

Gets or sets the paused flag.
public bool Paused
Результат bool