Example #1
0
	public KTimer(float time, TimerCallbackId callback, object state)
    {
        GameObject obj = Flow.config;

		KTimerManager timer = obj.AddComponent<KTimerManager>();
		timer.StartCoroutine(timer.TimerId(time, state, callback));

		this.timer = timer;
	}
Example #2
0
    public KTimer(float time, TimerCallbackId callback, object state)
    {
        GameObject obj = Flow.config;

        KTimerManager timer = obj.AddComponent <KTimerManager>();

        timer.StartCoroutine(timer.TimerId(time, state, callback));

        this.timer = timer;
    }