Esempio n. 1
0
    protected void SetNextFire(GameObject go)
    {
        if (state == ConnonState.connon)
        {
            uint nextNextFireTime = (uint)RandomHelper.GetRandomInt((int)(0.5 * defaultFireTime), (int)(1.5 * defaultFireTime));

            barrel.AimTarget(go.transform);

            timerID = TimerHeap.AddTimer(nextNextFireTime, 0, Fire, go);
        }
    }