// Start is called before the first frame update void Start() { Evil_Carot_An = GetComponent <Evil_Carot_Animation>(); evil_Carot_Mo = GetComponent <Evil_Carot_Movement>(); switch (Global_Variable.Difficulty_Level) { case 2: Current_Health = Health_Hard; break; case 1: Current_Health = Health_Normal; break; default: Current_Health = Health_Easy; break; } }
// Start is called before the first frame update void Start() { Evil_Carot_An = GetComponent <Evil_Carot_Animation>(); Mob_RB = GetComponent <Rigidbody2D>(); // Get Spawn_Point Spawn_Point = transform; // Difficulty switch switch (Global_Variable.Difficulty_Level) { case 2: Current_Jump_Delay = Hard_Jump_Delay; break; case 1: Current_Jump_Delay = Normal_Jump_Delay; break; default: Current_Jump_Delay = Easy_Jump_Delay; break; } // Pipe event subscription Event_System.current.onPipeEntered += Piped; }