void Start()
    {
        objectForm   = ObjectForm.Teapot;
        canClick     = false;
        testMode     = false;
        menuAnimator = GameObject.Find("Menu").GetComponent <Animator>();

        DontDestroyOnLoad(gameObject);
        Invoke("authorizeClick", 5f);
    }
        public UpdateController(object instance)
        {
            if (instance == null)
            {
                throw new ArgumentNullException(nameof(instance));
            }

            Instance = instance;
            DataType = instance.GetType();
            Form     = new ObjectForm();
        }
        public InsertController(DataType dataType)
        {
            if (dataType == null)
            {
                throw new ArgumentNullException(nameof(dataType));
            }

            DataType = dataType;
            Instance = Activator.CreateInstance(DataType.InnerType);
            Form     = new ObjectForm();
        }
Exemple #4
0
        public jsForm(ObjectForm objectForm)
        {
            id               = objectForm.id;
            name             = objectForm.name;
            isCatalogVisible = objectForm.isCatalogVisible;

            grids = new List <jsGrid>();
            foreach (var grid in objectForm.objectFormViewItems)
            {
                grids.Add(new jsGrid(grid));
            }
        }
    void Start()
    {
        win           = false;
        canFocus      = true;
        currentObject = 0;

        if (GameObject.Find("MenuLogic"))
        {
            ObjectForm objToSpawn = GameObject.Find("MenuLogic").GetComponent <MenuScript>().objectForm;

            switch (objToSpawn)
            {
            case ObjectForm.Teapot:
                GameObject objectTeapot = Instantiate(Resources.Load <GameObject>("Prefabs/objectTeapot"));
                objectTeapot.name = "objectTeapot";
                break;

            case ObjectForm.Elephant:
                GameObject objectElephant = Instantiate(Resources.Load <GameObject>("Prefabs/objectElephant"));
                objectElephant.name = "objectElephant";
                break;

            case ObjectForm.Fortytwo:
                GameObject objectFour = Instantiate(Resources.Load <GameObject>("Prefabs/objectFour"));
                GameObject objectTwo  = Instantiate(Resources.Load <GameObject>("Prefabs/objectTwo"));
                objectFour.name = "objectFour";
                objectTwo.name  = "objectTwo";
                break;

            case ObjectForm.Globe:
                GameObject objectGlobe = Instantiate(Resources.Load <GameObject>("Prefabs/objectGlobe"));
                GameObject objectBase  = Instantiate(Resources.Load <GameObject>("Prefabs/objectBase"));
                objectGlobe.name = "objectGlobe";
                objectBase.name  = "objectBase";
                break;
            }
            Destroy(GameObject.Find("MenuLogic"));
        }
        objects = GameObject.FindGameObjectsWithTag("ShadowForm");
    }
Exemple #6
0
        public string GetForm(decimal id)
        {
            ObjectForm form = new ObjectForm();

            try
            {
                var session = FluentNHibernateHelper.OpenSession();
                var lst     = session.QueryOver <ObjectForm>()
                              .Where(x => x.id == id)
                              .List <ObjectForm>();
                form = lst.FirstOrDefault();
                jsForm jsform          = new jsForm(form);
                JavaScriptSerializer s = new JavaScriptSerializer();
                var str = s.Serialize(jsform);

                return(str);
            }
            catch (Exception ex)
            {
                throw new WebFaultException <string>(ex.Message, System.Net.HttpStatusCode.InternalServerError);
            }
        }
        public static BaseForm getForm(string name)
        {
            BaseForm f = new ObjectForm();

            switch (name)
            {
            case "Object":
                f = new ObjectForm();
                break;

            case "Linq":
                f = new LinqForm();
                break;

            case "People":
                f = new PeopleForm();
                break;

            case "ConnectToUniversityPeople":
                f = new ConnectToUniversityPeopleForm();
                break;

            case "Worker":
                f = new Workers();
                break;

            case "Leadership":
                f = new LeadershipForm();
                break;

            case "Teacher":
                f = new TeacherForm();
                break;

            case "Staff":
                f = new StaffForm();
                break;

            case "Student":
                f = new StudentForm();
                break;

            case "Entrant":
                f = new EntrantForm();
                break;

            case "Thing":
                f = new ThingForm();
                break;

            case "CultureThing":
                f = new CultureThingForm();
                break;

            case "MatherialThing":
                f = new MatherialThingForm();
                break;

            case "Building":
                f = new BuildingForm();
                break;

            case "Room":
                f = new RoomForm();
                break;

            case "PersonalThing":
                f = new RersonalThingForm();
                break;

            case "Literature":
                f = new LiteratureForm();
                break;

            case "Electronic":
                f = new ElectronicForm();
                break;

            case "NotMatherialThing":
                f = new NotMatherialForm();
                break;

            case "GroupOfPeople":
                f = new GroupOfPeopleForm();
                break;

            case "Faculty":
                f = new FacultyForm();
                break;

            case "Group":
                f = new GroupForm();
                break;

            case "ManageOfPeople":
                f = new ManageOfPeopleForm();
                break;

            case "Mark":
                f = new MarkForm();
                break;

            case "Award":
                f = new AwardForm();
                break;

            //case "Event":
            //    f = new EventForm();
            //    break;
            //case "ControlKnowledge":
            //    f = new ControlKnowledgeForm();
            //    break;
            case "Subject":
                f = new SubjectForm();
                break;
            }
            return(f);
        }