コード例 #1
0
    // Super prototype-y, disable pc cam, enable football cam.
    public void E_BallThrown()
    {
        mBallThrown = true;

        if (mMakeCamFollowBall)
        {
            PROJ_Football refF = FindObjectOfType <PROJ_Football>();
            if (refF == null)
            {
                return;
            }

            refF.FActivateCam();
        }

        // ------------------ Destroy all the turrets projectiles.
        PP_Projectile[] balls = FindObjectsOfType <PP_Projectile>();
        foreach (PP_Projectile b in balls)
        {
            Destroy(b.gameObject);
        }
    }