Beispiel #1
0
    public int Tick()
    {
        if (_result != RESULT.WORKING)
        {
            return((int)_result);
        }


        if (_spineAttach.IsAnimFinished())
        {
            _result = RESULT.DONE;
            return((int)_result);
        }

        long ts = TimeHelper.GetCurrentTimestampScaled();

        if (ts - _enterTimestamp >= _shootInterval)
        {
            _result = RESULT.DONE;
            return((int)_result);
        }

        return((int)_result);
    }