Esempio 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;
 }
Esempio n. 2
0
    private void Start()
    {
        Store_Janitor_Mo = GetComponentInParent <Store_Janitor_Mouvements>();
        Store_Janitor_St = GetComponentInParent <Store_Janitor_States>();
        switch (Global_Variable.Difficulty_Level)
        {
        case 2:
            Wait_Time = Hard_Wait_Time;
            break;

        case 1:
            Wait_Time = Normal_Wait_Time;
            break;

        default:
            Wait_Time = Easy_Wait_Time;
            break;
        }
    }