// Use this for initialization void Start() { Console.Instance.CommandSent += OnCommand; GameObject sceneMaster = GameObject.Find( "SceneMaster" ); if( null == sceneMaster ) { Debug.LogError( "Failed to find SceneMaster object" ); return; } m_ItemMap = (ItemMap) sceneMaster.GetComponent<ItemMap>(); if( null == m_ItemMap ) { Debug.LogError( "Failed to find 'ItemMap' component on SceneMaster object" ); return; } m_ToolsCategory = m_ItemMap.m_Categories.FindCategory( "Tools" ); if( null == m_ToolsCategory ) { Debug.LogError( "Failed to find 'Tools' category in ItemMap" ); return; } ChangeTool( m_ItemMap.CreateItem( m_ToolsCategory, "Hand" ) ); m_InternalIZ = this.gameObject.AddComponent<CapsuleCollider>(); UpdateInternalIZ(); }