private void Update() { if (Input.GetKeyDown(KeyCode.A)) { transform.SaveComponent <SavePos, Transform>(); gobalTest.SaveGobal <GobalTestDebug, GobalTest>(); GameSaveUtility.SaveGame(); } if (Input.GetKeyDown(KeyCode.S)) { gameObject.LoadComponent <SavePos, Transform>(); gobalTest.LoadGobal <GobalTestDebug, GobalTest>(); } if (Input.GetKeyDown(KeyCode.D)) { gobalTest.test = "567"; } }