Exemplo n.º 1
0
    bool TranslationMode()
    {
        Thingy t = dcf.mLoc.CastIntoScene(dcf.worldCam);

        if (t != null)
        {
            EnableTranslation trans = gameObject.AddComponent <EnableTranslation>();
            DeactivateOnSwitch();
            trans.SetEnableTranslation(dcf, this, dcf.modes.trans.activeOnSwitch, t, t.GetComponentsInChildren <MeshFilter>(), dcf.modes.trans.flashColor);
            return(false);
        }
        return(true);
    }
Exemplo n.º 2
0
    bool TranslationMode()
    {
        Thingy t = dcf.mLoc.CastIntoScene(dcf.worldCam);

        if (t == null)
        {
            GoBack();
            return(false);
        }
        mf     = t.GetComponentsInChildren <MeshFilter>();
        editee = t;

        return(true);
    }