// Start is called before the first frame update void Start() { if ((PlayerPrefs.HasKey("Xball"))) { gameObject.transform.position = new Vector3(PlayerPrefs.GetFloat("Xball"), 0.5f, PlayerPrefs.GetFloat("Zball")); gameObject.transform.rotation = Quaternion.Euler(new Vector3(0, 0, 0)); } Handf = FindObjectOfType <Handforce>(); ballrb = GetComponent <Rigidbody>(); Winct = FindObjectOfType <WinController>(); // ballstart = (int)gameObject.transform.rotation.x; ballmove = false; }
// Start is called before the first frame update void Start() { Handf = FindObjectOfType <Handforce>(); }