예제 #1
0
    void on_id_change(NetworkInstanceId id_new)
    {
        receiver = ClientScene.FindLocalObject(id_new).GetComponent <InputToMovement>();

        if (!isLocalPlayer)
        {
            return;
        }

        Cmd_set_receiver();
    }
예제 #2
0
 void Start()
 {
     input    = GetComponentInParent <IInput>();
     movement = GetComponentInParent <InputToMovement>();
 }
예제 #3
0
 void Cmd_set_receiver()
 {
     receiver = ClientScene.FindLocalObject(receiver_id).GetComponent <InputToMovement>();
 }