diff --git a/Assets/scripts/Gui_AbilityButton.cs b/Assets/scripts/Gui_AbilityButton.cs index 80cd5a4..74f890f 100644 --- a/Assets/scripts/Gui_AbilityButton.cs +++ b/Assets/scripts/Gui_AbilityButton.cs @@ -37,7 +37,7 @@ public class Gui_AbilityButton : MonoBehaviour{ string sIcon = st.GetValue(abilityID, "icon"); var iconImage = Resources.Load(sIcon); if(iconImage==null){ - Debug.LogError("Could not open "+sIcon); + Debug.LogWarning("Could not open "+sIcon); } else icon.sprite = iconImage; diff --git a/Assets/scripts/Gui_CreateScrollList.cs b/Assets/scripts/Gui_CreateScrollList.cs index c0a09d4..973c701 100644 --- a/Assets/scripts/Gui_CreateScrollList.cs +++ b/Assets/scripts/Gui_CreateScrollList.cs @@ -27,7 +27,7 @@ public class Gui_CreateScrollList : MonoBehaviour { public ScrollRect scrollrect; //public InputField myfield; GameObject chat_input; - TchatAnim tchatAnim; + Gui_TchatAnim tchatAnim; string message_old; //tentative d'ajout des notifications: @@ -38,7 +38,7 @@ public class Gui_CreateScrollList : MonoBehaviour { void Start() { //PopulateList (); chat_input = GameObject.Find("tchat_complet"); - tchatAnim = chat_input.GetComponent (); + tchatAnim = chat_input.GetComponent (); } @@ -46,7 +46,7 @@ public class Gui_CreateScrollList : MonoBehaviour { void PopulateList() { foreach(var item in itemList) { GameObject newButton = Instantiate(sampleButton) as GameObject; - SampleButton button = newButton.GetComponent (); + Gui_SampleButton button = newButton.GetComponent (); button.nameLabel.text = item.name; button.icon.sprite = item.icon; button.message.text = item.message; @@ -67,7 +67,7 @@ public class Gui_CreateScrollList : MonoBehaviour { scrollrect.verticalNormalizedPosition = 0; GameObject myNewButton = Instantiate(sampleButton) as GameObject; - SampleButton button = myNewButton.GetComponent (); + Gui_SampleButton button = myNewButton.GetComponent (); button.nameLabel.text = name; button.message.text = tchatAnim.message; button.icon.sprite = portrait.sprite; @@ -80,7 +80,7 @@ public class Gui_CreateScrollList : MonoBehaviour { scrollrect.verticalNormalizedPosition = 0; GameObject myNewButton = Instantiate(logNotification) as GameObject; - LogNotification notif = myNewButton.GetComponent (); + Gui_LogNotification notif = myNewButton.GetComponent (); notif.message.text = message; myNewButton.transform.SetParent(contentPanel); } diff --git a/Assets/scripts/Gui_DayController.cs b/Assets/scripts/Gui_DayController.cs index a5e78c9..4d5f31d 100644 --- a/Assets/scripts/Gui_DayController.cs +++ b/Assets/scripts/Gui_DayController.cs @@ -36,7 +36,7 @@ public class Gui_DayController : MonoBehaviour { //appel de Window Chat chatWindowScroll = GameObject.Find("ChatWindowScroll"); - chatWindow = chatWindowScroll.GetComponent (); + chatWindow = chatWindowScroll.GetComponent (); //appel de CreateScrollList createScrollListObject = GameObject.Find("log_controller"); diff --git a/Assets/src/Game.cs b/Assets/src/Game.cs index 4fa900a..2be5bf6 100644 --- a/Assets/src/Game.cs +++ b/Assets/src/Game.cs @@ -3,12 +3,12 @@ using System.IO; public class Game { - public void SetMainPlayer(Player p){ + public void SetMainPlayer(Game_Player p){ m_mainPlayer = p; } - public Player GetMainPlayer(){ + public Game_Player GetMainPlayer(){ return m_mainPlayer; } @@ -31,7 +31,7 @@ public class Game { private static object m_singlmutex = new Object(); - private Player m_mainPlayer = null; + private Game_Player m_mainPlayer = null;