Exemplo n.º 1
0
        static public void UtNew(UtComponent.Component component)
        {
            UtComponent ut = null;

            switch (component)
            {
            case UtComponent.Component.Motif:
                ut = (UtMathMotif)Instantiate(InfinityMusic.instance.TemplateMathMotif, Vector3.zero, Quaternion.identity);
                break;

            case UtComponent.Component.Cadence:
                ut = (UtCadence)Instantiate(InfinityMusic.instance.TemplateCadence, Vector3.zero, Quaternion.identity);
                break;
            }
            ut.ComponantType    = component;
            ut.transform.parent = InfinityMusic.instance.transform;
            ut.DefaultValue();
            ut.Generate();
        }
Exemplo n.º 2
0
 private static void SaveCommon(UtComponent ut, ImComponent im)
 {
     im.Id        = ut.UtId;
     im.Name      = ut.name;
     im.IsEnabled = ut.UtIsEnabled;
 }
Exemplo n.º 3
0
 private static void LoadCommon(ImComponent im, UtComponent ut)
 {
     ut.UtId        = im.Id;
     ut.name        = im.Name;
     ut.UtIsEnabled = im.IsEnabled;
 }