Exemple #1
0
    public void RpcCreateObj(int clId, Vector3 pos, int objType, int uId)
    {
        //create the object on all clients
        ChatScript.ChatLocally("CreateObj on Cl. uId: " + uId);
        //Trigger local effect
        Effects.CircleBlip(pos, 3, 6, 1);

        //Create the correct object of type
        ObjFuncs.CreateObj((ObjFuncs.Type)objType, pos, Vector3.zero, clId, uId);
    }