public bool m_is_invincible_On; // 디버그 모드용이다. (Player의 무적상태 관련.) void Awake() { m_Instance = this; m_isPause = true; m_isGameOver = false; m_FeverTime = FeverTime(); m_SlowDown = SlowDown(); m_Max_Enemy_Num_in_One_Pattern = 15; // 일단은 최대 15마리로 설정. m_Enemy_Pattern_List = new List <Object_Pattern_Structure>(); // 적 패턴 리스트 할당 CSV_Manager.GetInstance().Get_Object_Pattern_List(ref m_Enemy_Pattern_List, m_Max_Enemy_Num_in_One_Pattern, OBJECT_TYPE.ENEMY); // "적 패턴 리스트"를 받아온다. m_Max_Obstacle_Num_in_One_Pattern = 15; // 일단은 최대 15개로 설정. m_Obstacle_Pattern_List = new List <Object_Pattern_Structure>(); // 장애물 패턴 리스트 할당 CSV_Manager.GetInstance().Get_Object_Pattern_List(ref m_Obstacle_Pattern_List, m_Max_Obstacle_Num_in_One_Pattern, OBJECT_TYPE.OBSTACLE); // "장애물 패턴 리스트"를 받아온다. m_Max_Item_Num_in_One_Pattern = 22; // 일단은 최대 20개로 설정. m_Item_Pattern_List = new List <Object_Pattern_Structure>(); // 아이템 패턴 리스트 할당 CSV_Manager.GetInstance().Get_Object_Pattern_List(ref m_Item_Pattern_List, m_Max_Item_Num_in_One_Pattern, OBJECT_TYPE.ITEM); // "아이템 패턴 리스트"를 받아온다. m_Elapsed_FeverTime = m_FeverTime_Duration; // 피버타임 시간 초기화. StartCoroutine(m_FeverTime); // 피버타임 검사 시작. }
void OnApplicationQuit() { if (car.activeSelf) { session_end = DateTime.Now.ToString(); CSV_Manager.AppendToCSV(SessionsData(), CSV_Manager.typeDataCSV.SESSIONS); } }
void Awake() { SM = this; uint[] count = CSV_Manager.AllCSVExists(); total_registered_sessions = count[0]; total_registered_laps = count[1]; total_registered_crashes = count[2]; }
void Update() { FindController(); if (isReady) { //Test(); CSV_Manager.AppendToReport(GetReportLine()); } }
void OnCollisionEnter(Collision col) { if (col.gameObject.name == "Car" && !finished) { CSV_Manager.AppendToCSV(CrashesData(), CSV_Manager.typeDataCSV.CRASHES); finished = true; StartCoroutine(ResetTag()); } }
void OnTriggerEnter(Collider col) { if (!recently_finished && col.tag == "Player") { CSV_Manager.AppendToCSV(lapData(), CSV_Manager.typeDataCSV.LAPS); lap_started = DateTime.Now; recently_finished = true; StartCoroutine(ResetTag()); } }
void Awake() { m_Instance = this; }
static void DEV_ResetReport() { CSV_Manager.CreateReport(); EditorApplication.Beep(); Debug.Log("<color=green>The report has been reset...!</color>"); }