Exemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            DrawDefaultInspector();

            ItemCreator itemCreator = (ItemCreator)target;

            if (GUILayout.Button("Create Item"))
            {
                itemCreator.Create();
            }
            GUILayout.Label(itemCreator.ErrorText);
        }
Exemplo n.º 2
0
 public void SetOwner(ItemCreator owner)
 {
     Owner                   = owner;
     transform.parent        = Owner.gameObject.transform;
     transform.localPosition = Vector3.zero;
 }