View Order Convention Writng C# Class.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyClass | |
{ | |
// Nested classes, structs, enums | |
public class PublicNestedClass { } | |
public struct PublicNestedStruct { } | |
public enum PublicNestedEnum { A, B, C } | |
private class PrivateNestedClass { } | |
private struct PrivateNestedStruct { } | |
private enum PrivateNestedEnum { A, B, C } |
View CustomTime.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> Custom Unity Time based on <see cref="System.Diagnostics.Stopwatch"/> </summary> | |
public class CustomTime : ITime | |
{ | |
public float TimeScale { get; set; } | |
public float Time { get; private set; } | |
public float DeltaTime { get; private set; } | |
public float UnscaledTime { get; private set; } | |
public float UnscaledDeltaTime { get; private set; } | |
public int FrameCount { get; private set; } |
View UniTask-AllowSceneActivation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Example Usage | |
{ | |
... | |
var operation = await LoadSceneOperation(nameOfScene, (progress)=>slider.value = progress); | |
... | |
... | |
operation.allowSceneActivation = true; | |
... |
View ICircleTarget.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using UnityEngine; | |
///<summary> Attach this script on Monobehaviour class </summary> | |
public interface ICircleTarget | |
{ | |
/// <summary> Circle radius around target </summary> | |
float RadiusAroundTarget { get; set; } | |
/// <summary> Contain objects that following this target </summary> | |
List<Transform> CircleObjects { get; set; } |
View SimpleDateTime.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
/// <summary> | |
/// Simple Date Time based on <see cref="System.DateTime"/>. | |
/// <example> | |
/// <br/><br/> | |
/// Usage 1: | |
/// <code> | |
/// var simpleDateTime = new SimpleDateTime(DateTime.Now); |
View Initializer.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEngine.Android; | |
using UnityEngine.Networking; | |
using UnityEngine.UI; | |
public class Initializer : MonoBehaviour | |
{ |