Esempio n. 1
0
    public static void JoinMaster(UdonSharpBehaviour body, int gid, int category)
    {
        T23_Master master = GetMaster(body, gid, category, false);

        if (!master)
        {
            master         = body.gameObject.AddComponent <T23_Master>();
            master.groupID = gid;
        }

        switch (category)
        {
        case 0:
            master.JoinBroadcast(body);
            break;

        case 1:
            master.JoinTrigger(body);
            break;

        case 2:
            master.JoinAction(body);
            break;
        }
    }