예제 #1
0
    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());
    }
예제 #2
0
    protected virtual void BroadcastInit()
    {
        S2C.ProjectileStatus pck = new S2C.ProjectileStatus(owner, transform.position, GetComponent<Rigidbody2D>().velocity);

        GetComponent<NetworkView>().RPC("SetStatus", RPCMode.OthersBuffered, pck.SerializeToBytes());
    }