Exemple #1
0
        public static SpinnerAuthoring SetupGameObject(this Engine.VPT.Spinner.Spinner spinner, GameObject obj, RenderObjectGroup rog)
        {
            var ic = obj.AddComponent <SpinnerAuthoring>().SetItem(spinner);

            obj.AddComponent <ConvertToEntity>();

            var wire = obj.transform.Find("Plate").gameObject;

            wire.AddComponent <SpinnerPlateAuthoring>().SetItem(spinner, "Plate");

            return(ic as SpinnerAuthoring);
        }
Exemple #2
0
        public static SpinnerBehavior SetupGameObject(this Engine.VPT.Spinner.Spinner spinner, GameObject obj, RenderObjectGroup rog)
        {
            var ic = obj.AddComponent <SpinnerBehavior>().SetData(spinner.Data);

            obj.AddComponent <ConvertToEntity>();

            var wire = obj.transform.Find("Plate").gameObject;

            wire.AddComponent <SpinnerPlateBehavior>().SetData(spinner.Data, "Plate");

            return(ic as SpinnerBehavior);
        }