资源简介

涂鸦跳跳类型游戏,unity 开发C#开发语言,完整项目,2017.2.0版本以上

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using UnityEditor;

namespace UnityStandardAssets.CrossPlatformInput.Inspector{
    [Initializeonload]
    public class CrossPlatformInitialize{
        // Custom compiler defines:
        // CROSS_PLATFORM_INPUT : denotes that cross platform input package exists so that other packages can use their CrossPlatformInput functions.
        // EDITOR_MOBILE_INPUT : denotes that mobile input should be used in editor if a mobile build target is selected. (i.e. using Unity Remote app).
        // MOBILE_INPUT : denotes that mobile input should be used right now!

        static CrossPlatformInitialize(){
            var defines = GetDefinesList(buildTargetGroups[0]);
            if (!defines.Contains(“CROSS_PLATFORM_INPUT“)){
                SetEnabled(“CROSS_PLATFORM_INPUT“ true false);
                SetEnabled(“MOBILE_INPUT“ true true);
            }
        }

        [MenuItem(“Mobile Input/Enable“)]
        private static void Enable(){
            SetEnabled(“MOBILE_INPUT“ true true);
            switch (EditorUserBuildSettings.activeBuildTarget){
                case BuildTarget.Android:
                case BuildTarget.iOS:
                case BuildTarget.PSM: 
                case BuildTarget.Tizen: 
                case BuildTarget.WSAPlayer: 
                    EditorUtility.DisplayDialog(“Mobile Input“
                                                “You have enabled Mobile Input. You‘ll need to use the Unity Remote app on a connected device to control your game in the Editor.“
                                                “OK“);
                    break;
                default:
                    EditorUtility.DisplayDialog(“Mobile Input“
                                                “You have enabled Mobile Input but you have a non-mobile build target selected in your build settings. The mobile control rigs won‘t be active or visible on-screen until you switch the build target to a mobile platform.“
                                                “OK“);
                    break;
            }
        }

        [MenuItem(“Mobile Input/Enable“ true)]
        private static bool EnableValidate(){
            var defines = GetDefinesList(mobileBuildTargetGroups[0]);
            return !defines.Contains(“MOBILE_INPUT“);
        }

        [MenuItem(“Mobile Input/Disable“)]
        private static void Disable(){
            SetEnabled(“MOBILE_INPUT“ false true);
            switch (EditorUserBuildSettings.activeBuildTarget){
                case BuildTarget.Android:
                case BuildTarget.iOS:
                    EditorUtility.DisplayDialog(“Mobile Input“
                                                “You have disabled Mobile Input. Mobile control rigs won‘t be visible and the Cross Platform Input functions will always return standalone controls.“
                                                “OK“);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-28 17:07  Jump100\
     目录           0  2018-09-25 17:19  Jump100\.vs\
     目录           0  2018-09-25 17:19  Jump100\.vs\Jump100\
     目录           0  2018-09-27 17:39  Jump100\.vs\Jump100\v14\
     文件      339456  2018-09-28 16:43  Jump100\.vs\Jump100\v14\.suo
     文件       18446  2018-09-27 16:56  Jump100\Assembly-CSharp-Editor-firstpass.csproj
     文件       18044  2018-09-27 16:56  Jump100\Assembly-CSharp-Editor.csproj
     文件       37772  2018-09-27 16:56  Jump100\Assembly-CSharp-firstpass.csproj
     文件       15084  2018-09-27 16:56  Jump100\Assembly-CSharp.csproj
     目录           0  2018-09-27 16:55  Jump100\Assets\
     目录           0  2018-09-27 16:55  Jump100\Assets\Editor\
     文件         214  2018-09-27 16:55  Jump100\Assets\Editor.meta
     目录           0  2018-09-28 11:19  Jump100\Assets\Editor\CrossPlatformInput\
     文件         214  2018-09-27 16:55  Jump100\Assets\Editor\CrossPlatformInput.meta
     文件        5045  2018-09-28 11:19  Jump100\Assets\Editor\CrossPlatformInput\CrossPlatformInputInitialize.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\CrossPlatformInput\CrossPlatformInputInitialize.cs.meta
     目录           0  2018-09-28 11:26  Jump100\Assets\Editor\ImageEffects\
     文件         214  2018-09-27 16:55  Jump100\Assets\Editor\ImageEffects.meta
     文件        2860  2018-09-28 11:20  Jump100\Assets\Editor\ImageEffects\AntialiasingEditor.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\ImageEffects\AntialiasingEditor.cs.meta
     文件        7888  2018-09-28 11:20  Jump100\Assets\Editor\ImageEffects\BloomAndFlaresEditor.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\ImageEffects\BloomAndFlaresEditor.cs.meta
     文件        8165  2018-09-28 11:21  Jump100\Assets\Editor\ImageEffects\BloomEditor.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\ImageEffects\BloomEditor.cs.meta
     文件        4279  2018-09-28 11:21  Jump100\Assets\Editor\ImageEffects\CameraMotionblurEditor.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\ImageEffects\CameraMotionblurEditor.cs.meta
     文件        4544  2018-09-28 11:22  Jump100\Assets\Editor\ImageEffects\ColorCorrectionCurvesEditor.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\ImageEffects\ColorCorrectionCurvesEditor.cs.meta
     文件        3639  2018-09-28 11:22  Jump100\Assets\Editor\ImageEffects\ColorCorrectionLookupEditor.cs
     文件         198  2016-08-31 23:46  Jump100\Assets\Editor\ImageEffects\ColorCorrectionLookupEditor.cs.meta
     文件        2279  2018-09-28 11:22  Jump100\Assets\Editor\ImageEffects\CreaseShadingEditor.cs
............此处省略2986个文件信息

评论

共有 条评论