Example #1
0
    void Update()
    {
        if (protectTime > 0)
        {
            protectTime -= Time.deltaTime;
        }

        if (owner != null)
        {
        }
        else if (rigid.velocity != Vector3.zero && rigid.OnGround())
        {
            if (!onGround)
            {
                onGround = true;
            }

            rigid.velocity = Vector3.zero;
        }
    }