Exemplo n.º 1
0
        void OnDestroy()
        {
            GameObject temp = GameObject.Find("FPSController");

            speedo = temp.GetComponent <FirstPersonController>();
            speedo.SpeedChange(rspeed, wspeed);
        }