public void OnTriggerExit(Collider collider) { if (collider.GetComponent <script_puck>()) { m_script_puck = collider.GetComponent <script_puck>(); if (m_script_puck.m_cannon_fired == true) { m_manager_gameplay_cannon.Collider_Event(m_script_puck, "exit zone"); } } }
private void Score_Positive(script_puck script) { script.m_cannon_fired = false; m_score_positive++; m_stats_saves++; if (script.m_hot_touched) { m_score_positive++; } m_ui_world.Count_Save(m_score_positive); }
private void Score_Negative(script_puck script) { script.m_cannon_fired = false; m_score_negative++; m_stats_allowed++; m_ui_world.Count_Score(m_score_negative); if (m_speedy_round == false) { m_ui_world.Game_Events("particle goal"); script.Game_Events("score sound"); } m_wave_missedShot = true; }
/* ---------------- End next wave setup ------------------ */ public void Collider_Event(script_puck script, string type) { //puck exits the goal area if (m_game_state == GameState.Shooting || m_game_state == GameState.Active) { if (type == "exit zone") { Score_Positive(script); } else if (type == "score") { Score_Negative(script); } } }