public static void ScrapUsedListener(UnityAction listener) { scrapUsedListener = listener; if (scrapUsedInvoker != null) { scrapUsedInvoker.AddScrapUsedListener(listener); } }
/// <summary> /// This event is being used to update the UI After a tower has been built /// this will determine if the user is still able to select pieces to craft with /// </summary> /// <param name="invoker"></param> public static void ScrapUsedInvoker(Tower invoker) { scrapUsedInvoker = invoker; if (scrapUsedListener != null) { invoker.AddScrapUsedListener(scrapUsedListener); } }