Question by
yepez7 · Sep 19, 2016 at 07:03 PM ·
networkingmultiplayernetworkmultiplayer-networking
local scale network
how can a flip in network using local scale because it doest flip in the client or host and this method I'm using it in fixUpdate as CmdFlip();
[Command] void CmdFlip () {
facingRight = !facingRight; // Switch the way the player is labelled as facing.
// Multiply the player's x local scale by -1.
Vector3 theScale = transform.localScale;
theScale.x *= -1;
transform.localScale = theScale;
}
Comment