public void OnButtonSaveAs() { myFileName_Text.text = CS_VR_LevelManager.Instance.OnButtonSaveAs(); myLoad_NameList = CS_AnyLevelSave.LoadFileNameList(); UpdateLoadNameDisplay(); }
void Awake() { if (instance != null && instance != this) { Destroy(this.gameObject); } else { instance = this; } if (myHandleTransform == null) { myHandleTransform = GameObject.Find("Handle").transform; } myLoad_NameList = CS_AnyLevelSave.LoadFileNameList(); UpdateLoadNameDisplay(); Hand[] t_allHands = FindObjectOfType <Player> ().GetComponentsInChildren <Hand> (true); for (int i = 0; i < t_allHands.Length; i++) { myHandModeDictionary.Add(t_allHands [i], new HandInfo(myHandModeDisplayPrefab, t_allHands [i])); } }