示例#1
0
        void Awake()
        {
            LocalizedImage textObject = ((LocalizedImage)target);

            if (textObject != null)
            {
                selectedKey = textObject.localizedKey;
            }
        }
示例#2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            selectedKey = LocalizedKeySelector.SelectKeyGUI(selectedKey, true, LocalizedObjectType.GAME_OBJECT);

            if (!Application.isPlaying && GUILayout.Button("Use Key", GUILayout.Width(70)))
            {
                LocalizedImage textObject = ((LocalizedImage)target);
                textObject.localizedKey = selectedKey;
            }
        }