void Start() { // data = CSV_Reader.Read ("Joint angles1"); data = CSV_Reader.Read(Config.joint_angles_file_name); Hip_RT = transform.GetChild(1).GetChild(1); Hip_LT = transform.GetChild(1).GetChild(0); Knee_RT = transform.GetChild(1).GetChild(1).GetChild(0); Knee_LT = transform.GetChild(1).GetChild(0).GetChild(0); }
void Start() { // foreach (Transform child in transform) // print("Foreach loop: " + child); data = CSV_Reader.Read("Joint angles"); // for(var i=0; i < data.Count; i++) { // print ("X_angle " + data[i]["Left_Hip_FlexExt"] + " " + // "Y_angle " + data[i]["Left_Hip_AbdAdd"] + " " + // "Z_angle " + data[i]["Left_Hip_IntExt"]); // } // foreach (string key in data[0].Keys) // { // print(key); // } }
// Disable Field Unused warning #pragma warning disable 0414 // Works with regular fields // [DebugGUIGraph(min: -1, max: 1, r: 0, g: 1, b: 0, autoScale: true)] // float MomentumX; // As well as properties // [DebugGUIGraph(min: -1, max: 1, r: 0, g: 1, b: 1, autoScale: true)] // float CosProperty { get { return Mathf.Cos(Time.time * 6); } } #if NET_4_6 // Also works for expression-bodied properties in .Net 4.6+ // [DebugGUIGraph(min: -1, max: 1, r: 1, g: 0.3f, b: 1)] // float SinProperty => Mathf.Sin((Time.time + Mathf.PI / 2) * 6); #else // [DebugGUIGraph(min: -1, max: 1, r: 1, g: 0.5f, b: 1)] // float SinProperty { get { return Mathf.Sin((Time.time + Mathf.PI / 2) * 6); } } #endif // User inputs, print and graph in one! // [DebugGUIGraph(group: 1, r: 1, g: 0.3f, b: 0.3f)] // float MomentumY; // [DebugGUIPrint, DebugGUIGraph(group: 1, r: 0, g: 1, b: 0)] // float mouseY; void Awake() { // Log (as opposed to LogPersistent) will disappear automatically after some time. // DebugGUI.Log("Hello! I will disappear in five seconds!"); //find your dropdown object print("Graph Created"); data = CSV_Reader.Read("chathu_trial_Session10_Shimmer_5F42_Calibrated_PC"); data2 = CSV_Reader.Read(Config.joint_angles_file_name); // for(var i=0; i < data.Count; i++) { // print ("X_acc " + data[i]["Shimmer_5F42_Accel_WR_X_CAL"] + " " + // "Y_acc " + data[i]["Shimmer_5F42_Accel_WR_X_CAL"] + " " + // "Z_acc " + data[i]["Shimmer_5F42_Accel_WR_X_CAL"]); // } }
private void Awake() { instance = this; /* * if(instance == null) // 씬이 바뀌어도 유지 * { * instance = this; * DontDestroyOnLoad(this.gameObject); * } * else * Destroy(this.gameObject); */ item_list = CSV_Reader.Read("Item_Table"); // 아이탬 로드 for (int i = 0; i < item_list.Count; i++) { item_num.Add(item_list[i]["name"], 0); // 먹은 아이템 갯수에 아이템 이름 등록 } combination_list = CSV_Reader.Read("Combination_Table"); // 조합 로드 quest_list = CSV_Reader.Read("Quest_Table"); // 퀘스트 로드 for (int i = 0; i < quest_list.Count; i++) { quest_state.Add(i + 1, 0); // 퀘스트 진행상태 등록 } world_list = CSV_Reader.Read("World_Table"); // 지역 방사능 로드 if (SceneManager.GetActiveScene().name == "Game_SceneNew") { dictionary_sc.before_awake(); } audioSource = gameObject.AddComponent <AudioSource>(); }
void Start() { data = CSV_Reader.Read("chathu_trial_Session10_Shimmer_5F42_Calibrated_PC"); num_points = data.Count; }
private void Awake() { TextList = CSV_Reader.Read("Text"); }