// Start is called before the first frame update
 void Start()
 {
     // Get components
     Electricity_Manager_Sr = GetComponent <SpriteRenderer>();
     Electricity_Manager_An = GetComponent <Animator>();
     Electricity_Manager_St = GetComponent <Electricity_Manager_State>();
     Event_System.current.onCinematicEnd   += Launch_End_Cinematic;
     Event_System.current.onCinematicBegin += Launch_Cinematic;
 }
Esempio n. 2
0
    // Start is called before the first frame update
    void Start()
    {
        Electricity_Manager_An = GetComponent <Electricity_Manager_Animation>();
        Electricity_Manager_St = GetComponent <Electricity_Manager_State>();


        HUD = Electricity_Manager_St.HUD;
        switch (Global_Variable.Difficulty_Level)
        {
        case 2:
            Max_Health = Health_Hard;
            break;

        case 1:
            Max_Health = Health_Normal;
            break;

        default:
            Max_Health = Health_Easy;
            break;
        }
        Current_Health = Max_Health;
    }