// Start is called before the first frame update void Start() { // Gameobjects Components getters Player_RB = GetComponent <Rigidbody2D>(); Player_SR = GetComponent <SpriteRenderer>(); Player_An = GetComponent <Animator>(); Player_Mo = GetComponent <Glucose_Controls>(); Change_Animation_Vibe(Glucose_States.Player_Emotion.Normal); }
// Start is called before the first frame update void Start() { // Get all components Glucose_An = GetComponent <Glucose_Animation>(); Glucose_St = GetComponent <Glucose_States>(); Glucose_Mo = GetComponent <Glucose_Controls>(); Audio_Prefab_Sp = GetComponent <Audio_Prefab_Spawner>(); // Setup Current Health Current_Health = Max_Health; }
// 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; }