public virtual void SetLevelToLoadOnClick(string p_levelName) { if (m_buttonObject != null) { ChangeSceneInteraction v_button = m_buttonObject.GetComponent <ChangeSceneInteraction>(); if (v_button != null) { v_button.StageToLoadOnClick = p_levelName; } #if KILT_SHOPHELPER ChangeSceneWithItemInteraction v_buttonWithItem = m_buttonObject.GetComponent <ChangeSceneWithItemInteraction>(); if (v_buttonWithItem != null) { v_buttonWithItem.StageToLoadOnClick = p_levelName; } #endif } }
public virtual string GetLevelToLoadOnClick() { if (m_buttonObject != null) { ChangeSceneInteraction v_button = m_buttonObject.GetComponent <ChangeSceneInteraction>(); if (v_button != null) { return(v_button.StageToLoadOnClick); } #if KILT_SHOPHELPER ChangeSceneWithItemInteraction v_buttonWithItem = m_buttonObject.GetComponent <ChangeSceneWithItemInteraction>(); if (v_buttonWithItem != null) { return(v_buttonWithItem.StageToLoadOnClick); } #endif } return(""); }