public override void Start() { base.Start(); if (m_type == ResourceType.Wood) { SoundPlay.Play("battle_wood_pick", false, false); } else if (m_type == ResourceType.Gold) { SoundPlay.Play("gold", false, false); } //m_fShowEffectCounter = 0.4f; Vector3 pos = Vector3.zero; CombatInfoWnd Wnd = WndManager.FindDialog <CombatInfoWnd>(); if (Wnd != null) { pos = m_uicamera.WorldToViewportPoint(Wnd.GetResourcePos(m_type).position); } pos.z = 20;//Mathf.Abs(m_target.transform.position.z - m_gameCamera.transform.position.z) * 0.5f; pos = m_gameCamera.ViewportToWorldPoint(pos); m_end = m_gameCamera.transform.InverseTransformPoint(pos); m_target.transform.parent = m_gameCamera.transform; m_start = m_target.transform.localPosition; m_target.transform.localScale = Vector3.one; EffectCamera.RemoveFollowList(m_target.transform); }