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

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

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