TimeAgent.

SetDataTick(TimeStone, int) Method

Summary

SetDataTick callback called by the stone when it applies a tick's state to TimeAgents This is the callback where you apply your custom data of your gameObject.

Syntax

public virtual void SetDataTick(TimeStone stone, int tick)

Remarks

Use UnityEvent or override to use You can use GenericTimeAgent to use it in a simple way, but be careful with performances as it relies on Reflection TimeStone is given as a parameter in case you have multiple TimeStone using the same TimeAgent

Parameters

Name Type Description
stone TimeStone The TimeStone that called this method>
tick int The tick index of the TimeStone's timeLine that is applied to the GameObject

Return Value

Type Description
void