Exemple #1
0
        private static T GetInstance()
        {
            var objects = UnityApp.FindAllObjectsOfType <T>();

            if (objects.Length == 0)
            {
                return(default);
Exemple #2
0
        /*
         * Unity callbacks
         */

        void Awake()
        {
            canFly = UnityApp.InputAxisExists("Fly");
        }