예제 #1
0
    private IEnumerator Start()
    {
        rigid = GetComponent <Rigidbody>();

        while (counter > 0)
        {
            yield return(new WaitForSeconds(holdTime));

            rigid.AddForce(forces);
            counter--;
        }

        while (canRun)
        {
            yield return(new WaitForSeconds(holdTime));

            rigid.AddForces(forces2);
        }
    }