Exemplo n.º 1
0
 // 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;
 }
Exemplo n.º 2
0
    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();
    }
Exemplo n.º 3
0
 public void Change_Glucose_Vibe(Player_Emotion Emotion)
 {
     Glucose_An.Change_Animation_Vibe(Emotion);
 }