1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using UnityEngine;
using UnityEngine.InputSystem;
using System.Threading;
using System.Threading.Tasks;
using VContainer;
public class PortfolioManager : MonoBehaviour {
[Inject] private readonly IProjectService _projectService;
[Inject] private readonly ILogger _logger;
private async Task Start() {
try {
_logger.Log("Initializing Immersive Portfolio...");
await InitializeExperienceAsync(destroyCancellationToken);
} catch (OperationCanceledException) { }
catch (Exception e) { _logger.LogError(e); }
}
private async Task InitializeExperienceAsync(CancellationToken token) {
var projects = await _projectService.GetAllAsync(token);
// Processing projects with high performance...
}
public void OnMove(InputValue value) {
var inputVec = value.Get<Vector2>();
_logger.Log($"Navigation input detected: {inputVec}");
}
}
Ln 1, Col 1Spaces: 2UTF-8
C#Unity 6