public void clickListener()
 {
     if (Input.GetMouseButtonDown(0))
     {
         ClickHandler(SelectObject.GetClickedGameObject()); // Needs assigning to something
     }
 }
示例#2
0
        /// <summary>
        /// Метод, выполняющий копирование выбранных фигур.
        /// </summary>
        /// <para name = "SeleckResult">Переменная, хранящая список выделенных фигур</para>
        /// <para name = "Figures">Переменная, хранящая ссылку на список фигур.</para>
        public CopyFigure(List <Figure> SeleckResult, List <Figure> Figures)
        {
            _summFigureSelect = SeleckResult.Count;
            _summFigureBase   = Figures.Count;
            _selectFigure     = SeleckResult.GetRange(0, SeleckResult.Count);
            _saveFigure       = Figures.GetRange(0, Figures.Count);
            _figure           = Figures;

            foreach (Figure SelectObject in _selectFigure)
            {
                Figure   obj          = SelectObject.CloneFigure();
                PointF[] updatePoints = obj.Path.PathData.Points;
                byte[]   updateTypes  = obj.Path.PathData.Types;
                for (int i = 0; i < obj.Path.PointCount; i++)
                {
                    updatePoints[i].X += 20;
                    updatePoints[i].Y += 20;
                }
                obj.Path.Reset();
                obj.Path = new GraphicsPath(updatePoints, updateTypes);
                _figure.Add(obj);
                _figure[_figure.Count - 1].IdFigure = _figure.Count - 1;
            }
            _saveResult    = _figure.GetRange(0, _figure.Count);
            _operatorValue = "Replication selected figures";
        }
示例#3
0
 // Update is called once per frame
 void Update()
 {
     if (SelectObject.MousePick() != null)
     {
         ChoosingObj(SelectObject.MousePick());
     }
 }
示例#4
0
        void ScorePropertyGrid_Loaded(object sender, RoutedEventArgs e)
        {
            if (mListBoxGrid != null)
            {
                mListBoxGrid.ItemsSource = mListProperties;
            }
            var view = (CollectionView)CollectionViewSource.GetDefaultView(mListProperties);

            if (view != null)
            {
                if (view.GroupDescriptions != null && view.GroupDescriptions.Count == 0)
                {
                    view.GroupDescriptions.Add(new PropertyGroupDescription("Category"));
                }
                else
                {
                    if (view.GroupDescriptions != null)
                    {
                        view.GroupDescriptions.Clear();
                    }
                }
            }
            NameColumnWidth = 100;
            if (SelectObject != null)
            {
                mListProperties.Clear();
                List <ScoreProperty> listProperties = new List <ScoreProperty>();
                SelectObject.GetPropertyList(ref listProperties);
                for (int i = 0; i < listProperties.Count; i++)
                {
                    mListProperties.Add(listProperties[i]);
                }
            }
        }
示例#5
0
    void runAnimation(String AnimationName)
    {
        switch (SelectObject.combinationName)
        {
        case "Screw_Nut_Interaction":
            break;

        case "Gear":
            break;

        case "Belt and Pulley":
            Functions_BeltandPulley CustomFunctions = new Functions_BeltandPulley();
            CustomFunctions = JsonUtility.FromJson <Functions_BeltandPulley>(info);
            Function_BeltandPulley CustomFunction = new Function_BeltandPulley();
            for (int i = 0; i < CustomFunctions.functions.Count; i++)
            {
                if ((CustomFunctions.functions[i].combination_name == "Belt and Pulley") && (CustomFunctions.functions[i].Animation_name == AnimationName))
                {
                    CustomFunction = CustomFunctions.functions[i];
                    SelectObject.runAnimation_BeltandPulley(int.Parse(CustomFunction.big_pulley_speed));
                }
            }
            break;

        case "Transmission":
            break;
        }
    }
 void  Start()
 {
     spawnerScript = FindObjectOfType <PuzzelItem>();
     rotatePuzzel  = FindObjectOfType <RotateObjects>();
     selectScript  = FindObjectOfType <SelectObject>();
     shakeScript   = FindObjectOfType <CameraShaking>();
     inventory     = FindObjectOfType <Inventory> ();
     startPosition = transform.position;
 }
示例#7
0
 void SetReferences()
 {
     UserControlsGo             = GameObject.Find("UserControls");
     UserControlsRef            = UserControlsGo.GetComponent <UserControls>();
     SelectObjectRef            = UserControlsGo.GetComponent <SelectObject>();
     MoveObjectRef              = UserControlsGo.GetComponent <MoveObject>();
     ResourcesDataControllerRef = GetComponent <ResourcesDataController>();
     StateMachineRef            = GetComponent <StateMachine>();
 }
示例#8
0
 // Start is called before the first frame update
 private void Awake()
 {
     arCamera       = FindObjectOfType <Camera>().gameObject;
     findingScript  = FindObjectOfType <SelectObject>();
     objectDistance = FindObjectOfType <DistanceToObject>();
     // enabling the scripts if any are not checked
     findingScript.enabled  = true;
     objectDistance.enabled = true;
 }
示例#9
0
 // Use this for initialization
 void Start()
 {
     flatSceneEnabled = false;
     paused           = false;
     tutorial         = false;
     init             = true;
     LookAround       = GetComponent <LookAtMouse>();
     selectable       = GetComponent <SelectObject>();
 }
    private Vector3 globalL; // the angular momentum in world space

    // Use this for initialization
    protected void Start()
    {
        sel = GameObject.Find("Engine").GetComponent<SelectObject>();
        // set the inverse mass
        inverseMass = 1 / mass;

        // set the matrix representation of the inertia tensor
        localI = Matrix4x4.Scale(inertiaTensor);
    }
示例#11
0
 public SelectObjectRequest(string bucket, string key)
     : base(bucket, key)
 {
     this.method = CosRequestMethod.POST;
     this.queryParameters.Add("select", null);
     this.queryParameters.Add("select-type", "2");
     this.selectObject           = new SelectObject();
     selectObject.ExpressionType = "SQL";
 }
示例#12
0
 void Start()
 {
     //defining the blacklist that will be filled with the selected items
     blackList = FindObjectOfType <SelectObject>();
     // defining the collector that contains the objects , timer text component , play again and main menu buttons
     collector      = FindObjectOfType <RotateChildren>().gameObject;
     timerText.text = roundTimer.ToString("F0");
     playAgain.gameObject.SetActive(false);
     mainMenu.gameObject.SetActive(false);
 }
示例#13
0
        public async Task <ConfigList> GetConfigList(int VoterTypeId, int OrganizationId)
        {
            var voters = await _context.Voters.Where(v => v.VoterTypeId == VoterTypeId).ToListAsync();

            var organizationUsers = await GetOrganizationReferences(OrganizationId, 0);

            var CondifgList = new ConfigList()
            {
                religion         = new List <string> (),
                politics         = new List <string> (),
                subChapter       = new List <string> (),
                civilIdMouhavaza = new List <string> (),
                civilIdKadaa     = new List <string> (),
                civilIdRegion    = new List <string> (),
                referenceUsers   = new List <SelectObject> ()
            };

            foreach (var item in voters)
            {
                if (item.Religion != null && item.Religion.Trim() != "" && !CondifgList.religion.Contains(item.Religion))
                {
                    CondifgList.religion.Add(item.Religion);
                }
                if (item.Politic != null && item.Politic.Trim() != "" && !CondifgList.politics.Contains(item.Politic))
                {
                    CondifgList.politics.Add(item.Politic);
                }
                if (item.SubChapter != null && item.SubChapter.Trim() != "" && !CondifgList.subChapter.Contains(item.SubChapter))
                {
                    CondifgList.subChapter.Add(item.SubChapter);
                }
                if (item.CivilIdMouhavaza != null && item.CivilIdMouhavaza.Trim() != "" && !CondifgList.civilIdMouhavaza.Contains(item.CivilIdMouhavaza))
                {
                    CondifgList.civilIdMouhavaza.Add(item.CivilIdMouhavaza);
                }
                if (item.CivilIdKadaa != null && item.CivilIdKadaa.Trim() != "" && !CondifgList.civilIdKadaa.Contains(item.CivilIdKadaa))
                {
                    CondifgList.civilIdKadaa.Add(item.CivilIdKadaa);
                }
                if (item.CivilIdRegion != null && item.CivilIdRegion.Trim() != "" && !CondifgList.civilIdRegion.Contains(item.CivilIdRegion))
                {
                    CondifgList.civilIdRegion.Add(item.CivilIdRegion);
                }
            }
            foreach (var user in organizationUsers)
            {
                var selectObject = new SelectObject()
                {
                    Value = user.Id,
                    Name  = user.UserName
                };
                CondifgList.referenceUsers.Add(selectObject);
            }
            return(CondifgList);
        }
示例#14
0
 void Start()
 {
     cube         = Cube.cube_instance;
     core         = Core.instance;
     selectobject = SelectObject.instance;
     ev           = Event.EvInstance;
     move         = false;
     turn_game    = false;
     progress     = 0;
     rules        = Rules.rules_instance;
 }
示例#15
0
 private void Start()
 {
     _fingerBones         = new List <UnityBone>(transform.gameObject.GetComponentsInChildren <UnityBone>());
     _fingerBonesRotation = new List <Quaternion>();
     _tip          = _fingerBones[3];
     _target       = GetTarget(GetComponentInParent <Transform>());
     _selectObject = GameObject.Find("Main Camera").GetComponent <SelectObject>();
     foreach (UnityBone bone in _fingerBones)
     {
         _fingerBonesRotation.Add(bone.transform.localRotation);
     }
 }
示例#16
0
 public override void OnLButtonDown(Point point)
 {
     base.OnLButtonDown(point);
     int hit = document.HitTest(point, false);
     _hit = hit;
     if (hit > 0)
         selectObject = SelectObject.SelectHandle;
     else if (hit == 0)
         selectObject = SelectObject.SelectEle;
     else
         selectObject = SelectObject.SelectNone;
     document.ChangeChooseSign(true, point);
 }
示例#17
0
        public void Select_Should_Work_With_Static_Method()
        {
            var qb = GetQueryBuilder <EmptyDatabase>();

            var query = qb.Select(t => SelectObject.Create(1, 2))
                        .Build();

            var rows = query.Execute();

            Assert.Equal(1, rows.Count());
            Assert.Equal(1, rows.Single().X);
            Assert.Equal(2, rows.Single().Y);
        }
示例#18
0
        /// <summary>
        /// Метод, выполняющий отрисовку опорных точек.
        /// </summary>
        /// <para name = "e">Переменная, хранящая  события отрисовки.</para>
        /// <para name = "SelectedFigure">Переменная, хранящая  список выделенных фигур.</para>
        /// <para name = "ListIFigures">Переменная, хранящая класс отрисовки.</para>
        public void Pivots(List <Figure> SelectedFigure, List <ITypesFigures> ListIFigures, Color linecolor)
        {
            foreach (Figure SelectObject in SelectedFigure)
            {
                if (SelectObject.SelectFigure == true)
                {
                    SelectObject.SelectFigure = false;
                    SelectObject.ClearListPivots();

                    Color ColorLine = linecolor;

                    ListIFigures[SelectObject.CurrentFigure].AddPivots(SelectObject, ColorLine);
                }
            }
        }
示例#19
0
        /// <summary>
        /// Метод, выполняющий отмену выделения.
        /// </summary>
        public void MouseUp()
        {
            foreach (ObjectFugure SelectObject in _selectedFigures)
            {
                if (SelectObject != null)
                {
                    SelectObject.ClearListFigure();
                    SelectObject.PointSelect  = null;
                    SelectObject.SelectFigure = false;
                    _supportObj = null;
                }
            }

            _selectedFigures.Clear();
        }
示例#20
0
 /// <summary>
 /// Метод, выполняющий отмену выделения.
 /// </summary>
 public void MouseUp()
 {
     foreach (Figure SelectObject in _selectedFigures)
     {
         if (SelectObject != null)
         {
             //SelectObject.Pen.Width -= 1;//Возвращаем ширину пера
             SelectObject.ClearListPivots();
             SelectObject.PointSelect  = null;
             SelectObject.SelectFigure = false;
             //SelectObject. = null;//Убираем ссылку на объект
             _supportObj = null;
         }
     }
     _selectedFigures.Clear();
 }
示例#21
0
 void Start()
 {
     cube              = Cube.cube_instance;
     core              = Core.instance;
     selectobject      = SelectObject.instance;
     pity              = false;
     init              = false;
     change_player     = false;
     tmp               = null;
     ennemy            = 0;
     index             = -1;
     grid_id           = -1;
     progress          = 0;
     invalid           = new List <Invalid>();
     invalid_obj_timer = null;
 }
示例#22
0
        /// <summary>
        /// Метод, выполняющий действия над выделенными фигурами.
        /// </summary>
        /// <para name = "e">Переменная, хранящая координаты мыши.</para>
        /// <para name = "CurrentActions">Переменная, хранящая действие над выбранной фигурой.</para>
        /// <para name = "FiguresBuild">Переменная, хранящая список действий.</para>
        public void MouseMove(MouseEventArgs e, int CurrentActions, List <ITypesFigures> FiguresBuild)
        {
            //Считаем смещение курсора
            int deltaX, deltaY;

            deltaX = e.Location.X - _oldPoint.X;
            deltaY = e.Location.Y - _oldPoint.Y;

            foreach (Figure SelectObject in _selectedFigures)
            {
                //Масштабирование опорных точек
                if ((SelectObject != null) && (_supportObj != null))
                {
                    FiguresBuild[SelectObject.CurrentFigure].ScaleSelectFigure(SelectObject, _supportObj, deltaX, deltaY);
                }
                else
                {
                    if (SelectObject != null)
                    {
                        SelectObject.PointSelect = SelectObject.Path.PathPoints;

                        SelectObject.Path.Transform(new Matrix(1, 0, 0, 1, deltaX, deltaY));

                        //_edipParametr.MoveObjectSupport(SelectObject, deltaX, deltaY);

                        if (SelectObject.CurrentFigure != 1)
                        {
                            for (int i = 0; i < SelectObject.PointSelect.Length; i++)
                            {
                                SelectObject.EditPivots(i, _figureBuild.SelectFigure(SelectObject.PointSelect[i], SelectObject.Pen.Width));
                            }
                        }
                        else
                        {
                            int k = 0;
                            for (int i = 0; i < SelectObject.PointSelect.Length; i += 3)
                            {
                                SelectObject.EditPivots(k, _figureBuild.SelectFigure(SelectObject.PointSelect[i], SelectObject.Pen.Width));
                                k++;
                            }
                        }
                    }
                }
                _oldPoint = e.Location;
            }
        }
    public void onChangeValue()
    {
        if (EventSystem.current.currentSelectedGameObject.name == "Animation")
        {
            CustomFunction.name   = animation.text;
            CustomFunction.source = SelectObject.getSourceName();
            CustomFunction.target = SelectObject.getTargetName();
            CustomFunction.Object = SelectObject.getObjectName();
        }
        else if (EventSystem.current.currentSelectedGameObject.name == "Value")
        {
            save.enabled     = true;
            save.image.color = Color.green;
            switch (a)
            {
            case "Tx":
                CustomFunction.Tx = value.text;
                break;

            case "Ty":
                CustomFunction.Ty = value.text;
                break;

            case "Tz":
                CustomFunction.Tz = value.text;
                break;

            case "Rx":
                CustomFunction.Rx = value.text;
                break;

            case "Ry":
                CustomFunction.Ry = value.text;
                break;

            case "Rz":
                CustomFunction.Rz = value.text;
                break;

            case "S":
                CustomFunction.S = value.text;
                break;
            }
        }
    }
示例#24
0
        public override void OnLButtonDown(Point point)
        {
            base.OnLButtonDown(point);
            int hit = document.HitTest(point, false);

            _hit = hit;
            if (hit > 0)
            {
                selectObject = SelectObject.SelectHandle;
            }
            else if (hit == 0)
            {
                selectObject = SelectObject.SelectEle;
            }
            else
            {
                selectObject = SelectObject.SelectNone;
            }
            document.ChangeChooseSign(true, point);
        }
示例#25
0
        public void WorkRegionKeyDown(Direction direction)
        {
            Int16 offset = document.SelectedDrawObjectList[0].DrawMultiFactor;

            selectObject = SelectObject.SelectEle;
            switch (direction)
            {
            case Direction.up:
                OnMouseMove(new Point(lastPoint.X, lastPoint.Y - offset));
                break;

            case Direction.down:
                OnMouseMove(new Point(lastPoint.X, lastPoint.Y + offset));
                break;

            case Direction.left:
                OnMouseMove(new Point(lastPoint.X - offset, lastPoint.Y));
                break;

            case Direction.right:
                OnMouseMove(new Point(lastPoint.X + offset, lastPoint.Y));
                break;
            }
        }
示例#26
0
 void Awake()
 {
     selectobject_instance = this;
 }
示例#27
0
 void Start()
 {
     cube = Cube.cube_instance;
     core = Core.instance;
     selectobject = SelectObject.instance;
     ev = Event.EvInstance;
     move = false;
     turn_game = false;
     progress = 0;
     rules = Rules.rules_instance;
 }
示例#28
0
 void Start()
 {
     spawnerScript = this.gameObject.GetComponent<PuzzelItem>();
     rotatePuzzel = this.gameObject.GetComponent<RotateObjects>();
     selectScript = this.gameObject.GetComponent<SelectObject>();
     shakeScript = this.gameObject.GetComponent<CameraShaking>();
     scoreScript = this.gameObject.GetComponent<Scores> ();
     startPosition = transform.position;
 }
 public void Awake()
 {
     objManager     = gameObject.GetComponent <ASL.Manipulation.Objects.ObjectInteractionManager>();
     selectBehavior = gameObject.GetComponent <SelectObject>();
 }
示例#30
0
 private void Start()
 {
     this.SelectObject = FindObjectOfType <SelectObject>();
     moveSpeed         = 5.5f;
 }
示例#31
0
 void Awake()
 {
     selectedObject = GameObject.Find("UserControls").GetComponent <SelectObject>();
     toggleElement  = this.GetComponent <Toggle>();
     dispBool       = this.GetComponent <DisplayBoolVariable>();
 }
示例#32
0
 public void setRelatedComponent(SelectObject so)
 {
     //throw new NotImplementedException();
 }
示例#33
0
 public void setRelatedComponent(SelectObject so)
 {
     this.RelatedComponent = so;
 }
示例#34
0
 public void WorkRegionKeyDown(Direction direction)
 {
     Int16 offset = document.SelectedDrawObjectList[0].DrawMultiFactor;
     selectObject = SelectObject.SelectEle;
     switch (direction)
     {
         case Direction.up:
             OnMouseMove(new Point(lastPoint.X, lastPoint.Y - offset));
             break;
         case Direction.down:
             OnMouseMove(new Point(lastPoint.X, lastPoint.Y + offset));
             break;
         case Direction.left:
             OnMouseMove(new Point(lastPoint.X - offset, lastPoint.Y));
             break;
         case Direction.right:
             OnMouseMove(new Point(lastPoint.X + offset, lastPoint.Y));
             break;
     }
 }
示例#35
0
    public void DuplicateComponent()
    {
        List <GameObject> cloneComponents = new List <GameObject>();
        List <GameObject> cloneLines      = new List <GameObject>();

        // Get all game objects and find the top-left and bottom-right most components
        foreach (GameObject objectSelected in SelectObject.SelectedObjects)
        {
            if (objectSelected.tag.Equals("ActiveItem") || objectSelected.tag.Equals("ActiveNode"))
            {
                // Instantiate new copy GameObject
                GameObject copy =
                    (GameObject)Instantiate(objectSelected, objectSelected.transform.position, objectSelected.transform.rotation);
                copy.GetComponent <GUICircuitComponent>()
                .CopyValues(objectSelected.GetComponent <GUICircuitComponent>());
                copy.transform.FindChild("SelectionBox").GetComponent <SpriteRenderer>().enabled = false;

                // Clear connections of component's Plus and Minus connectors
                Connectable[] connectableScripts = copy.GetComponentsInChildren <Connectable>();
                foreach (Connectable connectableScript in connectableScripts)
                {
                    connectableScript.Connected.Clear();
                }

                // Add newly created clone to the list of clones
                cloneComponents.Add(copy);
            }
        }

        // Duplicate each line and interconnect clone objects
        foreach (GameObject line in SelectObject.SelectedLines)
        {
            GameObject duplicateLine = Instantiate(line);
            duplicateLine.GetComponent <Line>().KeepColiders();

            // Set the Begin of the duplicated line
            GameObject beginComponent = line.GetComponent <Line>().Begin.transform.parent.gameObject;
            // Get the index of Connector among component children
            int        beginChildConnectorIndex = -1;
            GameObject beginConnector           = line.GetComponent <Line>().Begin;
            for (int i = 0; i < beginComponent.transform.childCount; i++)
            {
                if (beginComponent.transform.GetChild(i).gameObject.GetInstanceID() == beginConnector.GetInstanceID())
                {
                    beginChildConnectorIndex = i;
                }
            }
            // Get index of component in the List of SelectedObjects
            int        beginComponentIndex = SelectObject.SelectedObjects.IndexOf(beginComponent);
            GameObject cloneBegin          = cloneComponents[beginComponentIndex];
            duplicateLine.GetComponent <Line>().Begin = cloneBegin.transform.GetChild(beginChildConnectorIndex).gameObject;

            // Set the End of the duplicated line
            GameObject endComponent = line.GetComponent <Line>().End.transform.parent.gameObject;
            // Get the index of Connector among component children
            int        endChildConnectorIndex = -1;
            GameObject endConnector           = line.GetComponent <Line>().End;
            for (int i = 0; i < endComponent.transform.childCount; i++)
            {
                if (endComponent.transform.GetChild(i).gameObject.GetInstanceID() == endConnector.GetInstanceID())
                {
                    endChildConnectorIndex = i;
                }
            }
            // Get index of component in the List of SelectedObjects
            int        endComponentIndex = SelectObject.SelectedObjects.IndexOf(endComponent);
            GameObject cloneEnd          = cloneComponents[endComponentIndex];
            duplicateLine.GetComponent <Line>().End = cloneEnd.transform.GetChild(endChildConnectorIndex).gameObject;

            // Add references of each other to both newly connected connectors of the duplicated objects
            duplicateLine.GetComponent <Line>().Begin.GetComponent <Connectable>().AddConnected(duplicateLine.GetComponent <Line>().End);
            duplicateLine.GetComponent <Line>().End.GetComponent <Connectable>().AddConnected(duplicateLine.GetComponent <Line>().Begin);

            duplicateLine.GetComponent <Line>().Begin.GetComponent <Connector>().ConnectedConnectors.Add(duplicateLine.GetComponent <Line>().End.GetComponent <Connector>());
            duplicateLine.GetComponent <Line>().End.GetComponent <Connector>().ConnectedConnectors.Add(duplicateLine.GetComponent <Line>().Begin.GetComponent <Connector>());

            // Add new line to the list of duplicated lines
            cloneLines.Add(duplicateLine);
        }

        SelectObject selectionComponent = GameObject.Find("Canvas").GetComponent <SelectObject>();

        selectionComponent.DeselectObject();
        selectionComponent.DeselectLine();
        SelectObject.AddItemsToSelection(cloneComponents);
        SelectObject.AddLinesToSelection(cloneLines);

        // Check for collisions - duplicated are placed on the same position as their originals so there MUST BE a collision
        GetComponent <Draggable>().Colision();

        UndoAction undoAction = new UndoAction();

        foreach (GameObject objectSelected in SelectObject.SelectedObjects)
        {
            if (objectSelected.tag.Equals("ActiveItem") || objectSelected.tag.Equals("ActiveNode"))
            {
                GUICircuitComponent component = objectSelected.GetComponent <GUICircuitComponent>();
                List <float>        prop      = new List <float>();
                prop.Add((float)1.0);
                prop.Add((float)component.GetId());
                prop.Add((float)objectSelected.gameObject.transform.GetChild(0).GetComponent <Connectable>().GetID());
                prop.Add((float)objectSelected.gameObject.transform.GetChild(1).GetComponent <Connectable>().GetID());

                CreateDeleteCompChange change = new CreateDeleteCompChange();
                change.SetPosition(objectSelected.transform.position);
                change.SetChange(prop);
                change.SetType(objectSelected.gameObject.GetComponent <GUICircuitComponent>().GetType());
                change.RememberConnectorsToFirst(objectSelected.gameObject.transform.GetChild(0).GetComponent <Connectable>().Connected);
                change.RememberConnectorsToSecond(objectSelected.gameObject.transform.GetChild(1).GetComponent <Connectable>().Connected);

                undoAction.AddChange(change);
            }
        }
        GUICircuitComponent.globalUndoList.AddUndo(undoAction);
    }
示例#36
0
 void Start()
 {
     cube = Cube.cube_instance;
     core = Core.instance;
     selectobject = SelectObject.instance;
     pity = false;
     init = false;
     change_player = false;
     tmp = null;
     ennemy = 0;
     index = -1;
     grid_id = -1;
     progress = 0;
     invalid = new List<Invalid>();
     invalid_obj_timer = null;
 }
示例#37
0
 void Start()
 {
     spawnerScript = FindObjectOfType<PuzzelItem>();
     rotatePuzzel = FindObjectOfType<RotateObjects>();
     selectScript = FindObjectOfType<SelectObject>();
     shakeScript = FindObjectOfType<CameraShaking>();
     inventory = FindObjectOfType<Inventory> ();
     startPosition = transform.position;
 }