|
1 | 1 | using UnityEngine; |
2 | | -using System.Collections; |
3 | | -using System; |
4 | 2 |
|
5 | 3 | public class Tester : MonoBehaviour |
6 | 4 | { |
7 | 5 | void Update() |
8 | 6 | { |
9 | | - Debug.Log("Test", DLogType.AI); |
10 | | - Debug.Log("Test", DLogType.Assert); |
11 | | - Debug.Log("Test", DLogType.Audio); |
12 | | - Debug.Log("Test", DLogType.Content); |
13 | | - Debug.Log("Test", DLogType.Error); |
14 | | - Debug.Log("Test", DLogType.Exception); |
15 | | - Debug.Log("Test", DLogType.GUI); |
16 | | - Debug.Log("Test", DLogType.Input); |
17 | | - Debug.Log("Test", DLogType.Log); |
18 | | - Debug.Log("Test", DLogType.Logic); |
19 | | - Debug.Log("Test", DLogType.Network); |
20 | | - Debug.Log("Test", DLogType.Physics); |
21 | | - Debug.Log("Test", DLogType.System); |
22 | | - Debug.Log("Test", DLogType.Warning); |
23 | | - Debug.Log("Test with a super dooper long name akjlsdf klajsd lfkjads flkjasd flkjasdf ljkasdl fkjasl kfjasdlkf jasl fjaslk fjasldjf klasjfd lkasjdf klasjfd klsjadf klasjfd lkasjdf klasjdf ;lkasjfd lksajd fk", DLogType.Log); |
| 7 | + Debug.Log("CPU 1 has done action a", DLogType.AI); |
| 8 | + Debug.Log("Assertion created with Debug.Log", DLogType.Assert); |
| 9 | + Debug.Log("Song1 has started playing", DLogType.Audio); |
| 10 | + Debug.Log("Asset1 has loaded", DLogType.Content); |
| 11 | + Debug.Log("Couldn't find save file", DLogType.Error); |
| 12 | + Debug.Log("Database couldn't load", DLogType.Exception); |
| 13 | + Debug.Log("Showing game over UI", DLogType.GUI); |
| 14 | + Debug.Log("Player 1 pressed A", DLogType.Input); |
| 15 | + Debug.Log("Nearby enemy count: 3", DLogType.Log); |
| 16 | + Debug.Log("Condition 42 has been met", DLogType.Logic); |
| 17 | + Debug.Log("Connected to Player 2 at 192.168.0.0", DLogType.Network); |
| 18 | + Debug.Log("Physics collision with Ball1", DLogType.Physics); |
| 19 | + Debug.Log("Running on mobile", DLogType.System); |
| 20 | + Debug.Log("This is a bad thing that you should be aware of", DLogType.Warning); |
| 21 | + Debug.Log("Warning future me, this log will perplex you as it has me. It will depend on XYZ to be fixed before ABC can be implemented which where this log is from depends on to function properly. Thanks, past me", DLogType.Log); |
24 | 22 |
|
25 | 23 | Debug.Assert(true == false); |
26 | 24 | Debug.Assert(true == false, "true equals false"); |
27 | 25 | Debug.LogWarning("Warning"); |
28 | 26 | Debug.LogError("Error"); |
29 | 27 | Debug.LogAssertion("Conditionless assertion"); |
30 | | - |
31 | 28 | Debug.LogFormat("<color=green>This is a green message!</color>"); |
32 | 29 | } |
33 | 30 | } |
0 commit comments