using UnityEngine; namespace BitStrap.Examples { public class CreateExample : MonoBehaviour { public GameObject prefab; [Button] public void CreateDummyBehaviourInstanceAsChild() { if (Application.isPlaying) { Create.Behaviour(base.transform); } else { Debug.LogWarning("In order to see Create working, please enter Play mode."); } } [Button] public void CreatePrefabInstanceAsChild() { if (Application.isPlaying) { Create.Prefab(prefab, base.transform); } else { Debug.LogWarning("In order to see Create working, please enter Play mode."); } } } }