Ejemplo n.º 1
0
    protected override void OnStopWork(Worker worker)
    {
        base.OnStopWork(worker);
        if (session != null)
        {
            session.Cleanup();
            session = null;
        }
        KAnimControllerBase component = GetComponent <KAnimControllerBase>();

        component.Play("on", KAnim.PlayMode.Once, 1f, 0f);
    }