- Created AdvancedLoggingExample class demonstrating composite and file loggers - Implemented multi-file logging setup with separate error and full logs - Added game event and performance logging methods - Included key input handling for log operations (flush, clear) - Setup proper resource disposal on application quit
22 lines
524 B
C#
22 lines
524 B
C#
// using UnityEngine;
|
|
//
|
|
// public class SettingsDemo : MonoBehaviour
|
|
// {
|
|
// [SerializeField] private SettingsScreen screen;
|
|
// void Start()
|
|
// => screen.Open();
|
|
//
|
|
//
|
|
// void Update()
|
|
// {
|
|
// int direction = 0;
|
|
// if (Input.GetKeyDown(KeyCode.LeftArrow)) direction -= 1;
|
|
// if (Input.GetKeyDown(KeyCode.RightArrow)) direction += 1;
|
|
//
|
|
// screen.Switch(direction);
|
|
//
|
|
// if (Input.GetKeyDown(KeyCode.Space)) screen.Accept();
|
|
//
|
|
// }
|
|
// }
|