private IEnumerator ShowLateGoldFX() { if (m_lastLootFrame == Time.frameCount) { yield return(new WaitForSeconds(DelayedEventManager.GetFixedDelay(EEventType.PARTY_GET_LOOT))); } if (m_audioObject == null || !m_audioObject.IsPlaying()) { m_audioObject = AudioController.Play("Gold_loot"); } if (m_iconGold != null) { if (m_goldFX != null) { GameObject fx = (GameObject)Instantiate(m_goldFX, m_iconGold.position, Quaternion.identity); if (fx != null) { fx.transform.parent = m_iconGold; fx.transform.localScale = Vector3.one; } } else { Debug.LogError("RessourceView: gold highlight fx is not set!"); } } else { Debug.LogError("RessourceView: gold icon transform is not set!"); } yield break; }