protected virtual void RequestCurrentStatus(NetworkMessageInfo info) { S2C.ProjectileStatus pck = new S2C.ProjectileStatus(owner, transform.position, GetComponent<Rigidbody2D>().velocity); GetComponent<NetworkView>().RPC("SetStatus", info.sender, pck.SerializeToBytes()); }
protected virtual void BroadcastInit() { S2C.ProjectileStatus pck = new S2C.ProjectileStatus(owner, transform.position, GetComponent<Rigidbody2D>().velocity); GetComponent<NetworkView>().RPC("SetStatus", RPCMode.OthersBuffered, pck.SerializeToBytes()); }