更改文件架构
This commit is contained in:
38
Packages/Common~/Scripts/UX/Navigation/UXNextable.cs
Normal file
38
Packages/Common~/Scripts/UX/Navigation/UXNextable.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using BITKit;
|
||||
using UnityEngine.Events;
|
||||
namespace BITKit.UX
|
||||
{
|
||||
public class UXNextable : MonoBehaviour, INextble
|
||||
{
|
||||
public MonoBehaviour entry;
|
||||
public UnityEvent onStart;
|
||||
public UnityEvent onEnd;
|
||||
public void EntryNext()
|
||||
{
|
||||
Next();
|
||||
}
|
||||
public bool Next()
|
||||
{
|
||||
if (entry is INextble x)
|
||||
{
|
||||
return x.Next();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
public void EntryPrevious()
|
||||
{
|
||||
Previous();
|
||||
}
|
||||
public bool Previous()
|
||||
{
|
||||
if (entry is INextble x)
|
||||
{
|
||||
return x.Previous();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
11
Packages/Common~/Scripts/UX/Navigation/UXNextable.cs.meta
Normal file
11
Packages/Common~/Scripts/UX/Navigation/UXNextable.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 598807ef83bdb7c4695eedcc4831d763
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user