Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     Store_Janitor_He     = GetComponent <Store_Janitor_Health>();
     Store_Janitor_HitBox = GetComponentInChildren <Mob_Basic_Attack>();
     Store_Janitor_Mo     = GetComponent <Store_Janitor_Mouvements>();
     Store_Janitor_Att    = GetComponent <Store_Janitor_Attack>();
     Boss_Load_Next_Le    = GetComponent <Boss_Load_Next_Level>();
     // Call event
     Update_State(State);
     // Subscribe to event
     Event_System.current.onCinematicEnd += Begin_Combat;
 }
Ejemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        Store_Janitor_An = GetComponent <Store_Janitor_Animation>();
        Store_Janitor_St = GetComponent <Store_Janitor_States>();
        Store_Janitor_At = GetComponent <Store_Janitor_Attack>();
        HUD = Store_Janitor_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;
    }