Пример #1
0
    public D2D_Fixture AddFixture()
    {
#if UNITY_EDITOR
        D2D_Helper.BeginUndo("Add Fixture");
#endif
        var fixture = D2D_Helper.CreateGameObject("Fixture", transform, true).AddComponent <D2D_Fixture>();
#if UNITY_EDITOR
        D2D_Helper.SelectAndPing(fixture);
#endif
        return(fixture);
    }