private static T GetInstance() { var objects = UnityApp.FindAllObjectsOfType <T>(); if (objects.Length == 0) { return(default);
/* * Unity callbacks */ void Awake() { canFly = UnityApp.InputAxisExists("Fly"); }