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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user