Esempio n. 1
0
    void Stick(IRopable ropable, Vector2 position)
    {
        GetComponent<Rigidbody2D>().velocity = new Vector2(0f, 0f);

        ropable.Roped(this, position);

        ropeTarget = ropable;

        stickInfo = new S2C.RopeStickInfo(true, ropable.GetRopableID(), position);
        GetComponent<NetworkView>().RPC("SetRopeStuck", RPCMode.Others, stickInfo.SerializeToBytes());
    }