public void Super_Combo_Play() { combo_Gaze.fillAmount = pc.superComboMode_Count / pc.maxCombo; //combo_Gaze_Position.FindChild("ComboGaze(Clone)").FindChild("Gaze").GetComponent<Image>().fillAmount = pc.superComboMode_Count / pc.maxCombo; if (pc.superComboMode_Count <= 0) { Destroy(combo_Object); //Destroy(combo_Gaze_Object); superFiverButton.SetActive(true); superModeEffect.SetActive(false); pc.superComboMode_Count = 0f; fiver_Map.SetActive(false); combo_Text.text = pc.combo_Count.ToString() + " Combo"; cs = Combo_State.Idle; pc.ps = PlayerState.Idle; } }
public void combo_Strike() { if (cs != Combo_State.SuperMode) { if (combo_Object == null) { combo_Text.text = pc.combo_Count.ToString() + " Combo"; combo_Object = Instantiate(Resources.Load("Combo_Text_Object"), Vector3.zero, Quaternion.identity) as GameObject; combo_Object.transform.SetParent(combo_Position.transform, false); combo_Object.transform.position = combo_Position.transform.position; //combo_Gaze_Object = Instantiate(Resources.Load("ComboGaze"), Vector3.zero, Quaternion.identity) as GameObject; //combo_Gaze_Object.transform.SetParent(combo_Gaze_Position.transform,false); //combo_Gaze_Object.transform.position = combo_Gaze_Position.transform.position; combo_Object.SetActive(true); combo_Gaze.fillAmount = pc.superComboMode_Count / pc.maxCombo; cs = Combo_State.Eat; } if (combo_Object != null) { Destroy(combo_Object); //Destroy(combo_Gaze_Object); combo_Text.text = pc.combo_Count.ToString() + " Combo"; combo_Object = Instantiate(Resources.Load("Combo_Text_Object"), Vector3.zero, Quaternion.identity) as GameObject; combo_Object.transform.SetParent(combo_Position.transform, false); combo_Object.transform.position = combo_Position.transform.position; combo_Gaze.fillAmount = pc.superComboMode_Count / pc.maxCombo; //combo_Gaze_Object = Instantiate(Resources.Load("ComboGaze"), Vector3.zero, Quaternion.identity) as GameObject; //combo_Gaze_Object.transform.SetParent(combo_Gaze_Position.transform,false); //combo_Gaze_Object.transform.position = combo_Gaze_Position.transform.position; cs = Combo_State.Eat; } } }
public void SuperFiver() { if (ciriticalMode == true) { Destroy(combo_Object); //Destroy(combo_Gaze_Object); superFiverButton.SetActive(false); superModeGaze.fillAmount = pc.superFiverMode / pc.maxSuperFiverMode; combo_Gaze.fillAmount = pc.superComboMode_Count / pc.maxCombo; combo_Object = Instantiate(Resources.Load("SuperFiver_Text_Object"), Vector3.zero, Quaternion.identity) as GameObject; combo_Object.transform.SetParent(Fiver_Position.transform, false); combo_Object.transform.position = Fiver_Position.transform.position; //combo_Gaze_Object = Instantiate(Resources.Load("ComboGaze"), Vector3.zero, Quaternion.identity) as GameObject; //combo_Gaze_Object.transform.SetParent(combo_Gaze_Position.transform, false); //combo_Gaze_Object.transform.position = combo_Gaze_Position.transform.position; superModeEffect.SetActive(true); cs = Combo_State.SuperFiverMode; ciriticalMode = false; } else { Destroy(combo_Object); //Destroy(combo_Gaze_Object); superFiverButton.SetActive(false); superModeGaze.fillAmount = pc.superFiverMode / pc.maxSuperFiverMode; combo_Gaze.fillAmount = pc.superComboMode_Count / pc.maxCombo; combo_Object = Instantiate(Resources.Load("SuperFiver_Text_Object"), Vector3.zero, Quaternion.identity) as GameObject; combo_Object.transform.SetParent(Fiver_Position.transform, false); combo_Object.transform.position = Fiver_Position.transform.position; //combo_Gaze_Object = Instantiate(Resources.Load("ComboGaze"), Vector3.zero, Quaternion.identity) as GameObject; //combo_Gaze_Object.transform.SetParent(combo_Gaze_Position.transform, false); //combo_Gaze_Object.transform.position = combo_Gaze_Position.transform.position; SuperFiverEffect.SetActive(true); cs = Combo_State.SuperFiverMode; } }