add
This commit is contained in:
32
Assets/trCRM/Scripts/Main/MyMain.cs
Normal file
32
Assets/trCRM/Scripts/Main/MyMain.cs
Normal file
@@ -0,0 +1,32 @@
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using Coolape;
|
||||
|
||||
public class MyMain : CLMainBase
|
||||
{
|
||||
[Tooltip("状态栏是否显示状态及通知")]
|
||||
public bool statusBar = false;
|
||||
[Tooltip("状态栏样式")]
|
||||
public AndroidStatusBar.States statesBar = AndroidStatusBar.States.Visible;
|
||||
public override void init()
|
||||
{
|
||||
string str = "qdkdkdkdkd";
|
||||
Debug.Log(System.Text.RegularExpressions.Regex.Split(str, "d*").Length);
|
||||
base.init();
|
||||
|
||||
if (Application.platform == RuntimePlatform.Android)
|
||||
{
|
||||
if (statusBar)
|
||||
{
|
||||
Screen.fullScreen = false;
|
||||
}
|
||||
//AndroidStatusBar.statusBarState = statesBar;
|
||||
//AndroidStatusBar.dimmed = !statusBar;
|
||||
}
|
||||
}
|
||||
|
||||
public override void doOffline()
|
||||
{
|
||||
base.doOffline();
|
||||
}
|
||||
}
|
||||
11
Assets/trCRM/Scripts/Main/MyMain.cs.meta
Normal file
11
Assets/trCRM/Scripts/Main/MyMain.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7d951d33d5b4047c68866e4fb9f99e2e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user