Exemple #1
0
        public void It_should_apply_the_transform()
        {
            var funcTransform = new FuncTransform <Person, string>(x => x.FirstName = "Maria");
            var person        = new Person();

            funcTransform.ApplyTo(person);

            person.FirstName.Should().Be("Maria");
        }
 public static extern void NetworkingPlugin_FuncTransform(FuncTransform func);
    // ==========================================================
    // Function Setters, Automatic Unity main thread redirection
    // ==========================================================

    // ==========================================================
    // PacketTransform
    // ==========================================================
    public static void SetFuncTransform(FuncTransform func)
    {
        NetworkingPlugin_FuncTransform(HandleFuncTransform);
        mainThreadFuncTransform = func;
    }