Exemple #1
0
        protected override void SetPhantomState(GameObject phantom, INetworkedClientState state)
        {
            var __state = (RigidbodyState)state;

            phantom.transform.position = __state.position;
            phantom.transform.rotation = __state.rotation;
        }
 public bool Equals(INetworkedClientState other)
 {
     return other is RigidbodyState __other && Equals(__other);
 }
Exemple #3
0
 protected abstract void SetPhantomState(GameObject phantom, INetworkedClientState state);
        protected override void SetPhantomState(GameObject phantom, INetworkedClientState state)
        {
            var __state = (CharacterControllerState)state;

            phantom.transform.position = __state.position;
        }
 public bool Equals(INetworkedClientState other)
 {
     return(other is CharacterControllerState __other && Equals(__other));
 }