Пример #1
0
    /**
     * izveido buuvdarbu (sho netaisa prefabam caur Unity inspektoru, jo shis ir iislaiciigi pieejams darbs)
     */
    public void CreateAndAddConstructionJob(Room block, Gadget gadget, WorkUnit.WorkUnitTypes workType)
    {
        WorkUnit constructionJob = new WorkUnit();

            constructionJob.parentGameobject = block.gameObject;
            constructionJob.parentGadget = gadget;//null, ja shis nav gadzheta darbs

        constructionJob.WorkUnitTypeNumber = workType;
        constructionJob.setOn(true);
        AddWork(constructionJob);
    }