예제 #1
0
        private IEnumerator SetMegaShell(GameObject gameObject, float duration)
        {
            TankShooting tankShooting = gameObject.GetComponent <TankShooting>();

            tankShooting.SetShellRigidBody(MegaShell);

            yield return(new WaitForSeconds(duration));

            tankShooting.EnableDefaultShellRigidBody();
        }