// Start is called before the first frame update void Start() { Glucose_Vibe = Player_Emotion.Normal; Glucose_Control = Player_Control.Normal; Glucose_An = GetComponent <Glucose_Animation>(); Glucose_Mo = GetComponent <Glucose_Controls>(); Glucose_Att = GetComponent <Glucose_Attack>(); Event_System.current.onCinematicBegin += Change_Control_To_Cinematic; Event_System.current.onCinematicEnd += Change_Control_To_Normal; }
private IEnumerator Vibe_Changer() { // Wait for a ranged random amount of time yield return(new WaitForSeconds(Random.Range(3f, 5f))); // Chose a random vibe int vibe_id = Random.Range(0, 4); // Set player vibe to vibe id Glucose_Vibe = (Player_Emotion)vibe_id; // Update animation controller Change_Glucose_Vibe(Glucose_Vibe); // Relaunch Sequence Random_Vibe(); }
public void Change_Glucose_Vibe(Player_Emotion Emotion) { Glucose_An.Change_Animation_Vibe(Emotion); }