void on_id_change(NetworkInstanceId id_new) { receiver = ClientScene.FindLocalObject(id_new).GetComponent <InputToMovement>(); if (!isLocalPlayer) { return; } Cmd_set_receiver(); }
void Start() { input = GetComponentInParent <IInput>(); movement = GetComponentInParent <InputToMovement>(); }
void Cmd_set_receiver() { receiver = ClientScene.FindLocalObject(receiver_id).GetComponent <InputToMovement>(); }