Esempio n. 1
0
    public void SetActive(MovableObject o)
    {
        if (_activeObject)
        {
            _activeObject.Decline();
        }

        _activeObject                  = o;
        _activeObjectParent            = o.transform.parent;
        _activeObject.transform.parent = movableObjectsParent;
        toolsPanel.SetActive(true);
        toolsPanel.GetComponent <EditPanel>().Setup(
            _activeObject.controller.doSnap, _activeObject.allowDelete);
    }