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; }
public void Initialize(mg_if_EObjectsMovement p_movement) { m_XMovement = base.gameObject.GetComponent <mg_if_XMovement>(); m_XMovement.Initialize(p_movement, m_variables.KickerSpeed, m_variables.KickerSpeedRange); m_YMovement = base.gameObject.GetComponent <mg_if_YMovement>(); m_YMovement.Initialize(0f, 0f); }
protected override void Awake() { base.Awake(); m_XMovement = GetComponent <mg_if_XMovement>(); m_YMovement = GetComponent <mg_if_YMovement>(); m_BobMovement = new mg_if_BobMovement(m_variables.ExtraLifeBobTimeRate, m_variables.ExtraLifeBobAmplitude, m_variables.ExtraLifeBobTimeOffset); m_animator = GetComponentInChildren <Animator>(); }
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 Spawn() { base.Spawn(); m_XMovement = base.gameObject.GetComponent <mg_if_XMovement>(); m_XMovement.Initialize(mg_if_EObjectsMovement.MOVEMENT_AUTO, m_variables.SharkNearSpeed, m_variables.SharkNearSpeedRange); m_XMovement.SetInitialPos(); Vector2 vector = base.transform.position; vector.y = 0f - MinigameManager.GetActive <mg_IceFishing>().MainCamera.orthographicSize; base.transform.position = vector; MinigameManager.GetActive().PlaySFX("mg_if_sfx_SharkSwim"); }
protected override void Awake() { base.Awake(); m_XMovement = GetComponent <mg_if_XMovement>(); m_YMovement = GetComponent <mg_if_YMovement>(); }