Пример #1
0
    // Use this for initialization
    void Start()
    {
        myManager = new MyManager();
        myManager.BuilderOnlyMethod();

        GameObject newGO = new GameObject("AGameObject");

        newGO.AddComponent <FirstBehavior>();

        newGO.transform.SetParent(sceneObjectsRootTransform);
    }