feat: basic online working with relay
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Codice.Client.Common.WebApi;
|
|
||||||
using Sirenix.OdinInspector;
|
using Sirenix.OdinInspector;
|
||||||
using Unity.Netcode;
|
using Unity.Netcode;
|
||||||
using Unity.Netcode.Transports.UTP;
|
using Unity.Netcode.Transports.UTP;
|
||||||
|
|||||||
@@ -32,10 +32,11 @@ class CustomInputHandler : InputAxisControllerBase<CustomInputHandler.Reader>
|
|||||||
// We process user input on the Update clock
|
// We process user input on the Update clock
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
if (Application.isPlaying)
|
if (Application.isPlaying){
|
||||||
UpdateControllers();
|
UpdateControllers();
|
||||||
Controllers[0].Input.ProcessInput(PlayerInput);
|
Controllers[0].Input.ProcessInput(PlayerInput);
|
||||||
Controllers[1].Input.ProcessInput(PlayerInput);
|
Controllers[1].Input.ProcessInput(PlayerInput);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void AddEvents(){
|
public void AddEvents(){
|
||||||
|
|||||||
Reference in New Issue
Block a user