Beispiel #1
0
    public static void Move(GameObject go, Quaternion rot, emotitron.Network.NST.DebugXform istype, emotitron.Network.NST.DebugXform iftype)
    {
        if (istype != iftype)
        {
            return;
        }

        go.transform.rotation = rot;
    }
Beispiel #2
0
    public static void Move(GameObject go, Vector3 pos, emotitron.Network.NST.DebugXform istype, emotitron.Network.NST.DebugXform iftype)
    {
        if (istype != iftype)
        {
            return;
        }

        go.transform.position = pos;
    }
Beispiel #3
0
    public static void Move(GameObject srcGO, Vector3 pos, Quaternion rot, emotitron.Network.NST.DebugXform istype, emotitron.Network.NST.DebugXform iftype, bool moveThis = true)
    {
        if (!moveThis)
        {
            return;
        }

        if (istype != iftype)
        {
            return;
        }

        GameObject debugGO;

        if (crosses.TryGetValue(srcGO, out debugGO))
        {
            debugGO.transform.position = pos;
            debugGO.transform.rotation = rot;
        }
    }