Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        _timeContext = Contexts.sharedInstance.time;

        _timeContext.CreateEntity()
        .AddPausedListener(this);

        //_context.isPaused = true;
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        playhead = GetComponent <Slider> ();

        _timeContext = Contexts.sharedInstance.time;

        TimeEntity e = _timeContext.CreateEntity();

        e.AddTickListener(this);
        e.AddPausedListener(this);

        playhead.enabled = false;
    }