Exemple #1
0
 protected override void Awake()
 {
     base.Awake();
     m_animator   = GetComponentInChildren <Animator>();
     m_XMovement  = base.gameObject.GetComponent <mg_if_XMovement>();
     m_fishingRod = MinigameManager.GetActive <mg_IceFishing>().Logic.FishingRod;
 }
 protected override void Awake()
 {
     base.Awake();
     m_mouthOpen   = base.transform.Find("mouth_open").gameObject;
     m_mouthClosed = base.transform.Find("mouth_closed").gameObject;
     m_XMovement   = base.gameObject.GetComponent <mg_if_XMovement>();
     m_YMovement   = base.gameObject.GetComponent <mg_if_YMovement>();
     m_fishingRod  = MinigameManager.GetActive <mg_IceFishing>().Logic.FishingRod;
 }
 public override void OnObstacleHitHook(mg_if_FishingRod p_rod)
 {
     if (!m_lifeGiven)
     {
         p_rod.GainLife();
         m_fadeTimeRemaining = m_variables.ExtraLifeFadeTime;
         m_lifeGiven         = true;
         m_animator.enabled  = false;
     }
 }
 public void Start()
 {
     m_spawnManager = GetComponent <mg_if_SpawnManager>();
     m_fishingRod   = GetComponentInChildren <mg_if_FishingRod>();
     m_iceBox       = GetComponentInChildren <mg_if_IceBox>();
     Lives          = m_variables.StartingLives;
     GameOver       = false;
     m_resultShown  = false;
     FishCaught     = 0;
     m_inputManager = new mg_if_InputManager(MinigameManager.GetActive().MainCamera, this, mouseInputObserver);
     m_initialized  = true;
 }
Exemple #5
0
 public void Initialize(mg_if_FishingRod p_rod)
 {
     m_rod = p_rod;
     StopShock();
 }
 public override void OnObstacleHitHook(mg_if_FishingRod p_rod)
 {
     MinigameManager.GetActive().PlaySFX("mg_if_sfx_SharkBite");
     p_rod.CutLine(base.transform.position.y);
 }
 public void Initialize(mg_if_FishingRod p_rod)
 {
     m_rod = p_rod;
 }
 public void Initialize(mg_if_FishingRod p_rod, mg_if_WormDrop p_wormDrop)
 {
     m_rod      = p_rod;
     m_wormDrop = p_wormDrop;
     m_wormDrop.gameObject.SetActive(value: false);
 }
Exemple #9
0
 public override void OnObstacleHitHook(mg_if_FishingRod p_rod)
 {
     p_rod.ReleaseFish();
 }