Пример #1
0
    public void TryCycle()
    {
        float timeSince = Time.time - lastCycle;

        if (timeSince > 0.25f)
        {
            body.Cycle();
            lastCycle = Time.time;
        }
    }
Пример #2
0
    void OnLaunch()
    {
        thisBody.Cycle();
        Glue(GlueState.FREE);

        //test
        //thisTransform.position = thisTransform.position + Vector3.one*10f;
        thisRigidbody.AddForce(nextForce);

        expireTimer = new BasicTimer(1.5f, false);
    }