public void moveByVectorDirMsg( msgInput p_msgInput) { Vector3 newPos = p_msgInput.direction * (p_msgInput.MoveSpeed * Time.deltaTime) + transform.position; transform.position = newPos; }
void sendDirection(bool sendable, string msg, msgInput p_msg) { if (!sendable) return; else BroadcastMessage(msg, p_msg, SendMessageOptions.DontRequireReceiver); }