1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using BITKit.StateMachine;
|
||||
using Cysharp.Threading.Tasks;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using UnityEngine;
|
||||
@@ -67,43 +68,6 @@ namespace BITKit.UX
|
||||
{ UXUtils.Inject(this,Panel.Root as VisualElement);
|
||||
|
||||
}
|
||||
|
||||
bool IEntryElement.IsEntered
|
||||
{
|
||||
get => Panel.IsEntered;
|
||||
set => Panel.IsEntered = value;
|
||||
}
|
||||
|
||||
void IEntryElement.Entry()
|
||||
{
|
||||
Panel.Entry();
|
||||
}
|
||||
|
||||
UniTask IEntryElement.EntryAsync()
|
||||
{
|
||||
return Panel.EntryAsync();
|
||||
}
|
||||
|
||||
void IEntryElement.Entered()
|
||||
{
|
||||
Panel.Entered();
|
||||
}
|
||||
|
||||
void IEntryElement.Exit()
|
||||
{
|
||||
Panel.Exit();
|
||||
}
|
||||
|
||||
UniTask IEntryElement.ExitAsync()
|
||||
{
|
||||
return Panel.ExitAsync();
|
||||
}
|
||||
|
||||
void IEntryElement.Exited()
|
||||
{
|
||||
Panel.Exited();
|
||||
}
|
||||
|
||||
bool IUXPanel.IsWindow => Panel.IsWindow;
|
||||
|
||||
string IUXPanel.Index => Panel.Index;
|
||||
@@ -136,6 +100,58 @@ namespace BITKit.UX
|
||||
{
|
||||
Panel.OnTick(deltaTime);
|
||||
}
|
||||
|
||||
public bool Enabled
|
||||
{
|
||||
get => Panel.Enabled;
|
||||
set => Panel.Enabled = value;
|
||||
}
|
||||
|
||||
public void Initialize()
|
||||
{
|
||||
Panel.Initialize();
|
||||
}
|
||||
|
||||
public void OnStateEntry(IState old)
|
||||
{
|
||||
Panel.OnStateEntry(old);
|
||||
}
|
||||
|
||||
public void OnStateUpdate(float deltaTime)
|
||||
{
|
||||
Panel.OnStateUpdate(deltaTime);
|
||||
}
|
||||
|
||||
public void OnStateExit(IState old, IState newState)
|
||||
{
|
||||
Panel.OnStateExit(old, newState);
|
||||
}
|
||||
|
||||
public int Identifier
|
||||
{
|
||||
get => Panel.Identifier;
|
||||
set => Panel.Identifier = value;
|
||||
}
|
||||
|
||||
public UniTask InitializeAsync()
|
||||
{
|
||||
return Panel.InitializeAsync();
|
||||
}
|
||||
|
||||
public UniTask OnStateEntryAsync(IState old)
|
||||
{
|
||||
return Panel.OnStateEntryAsync(old);
|
||||
}
|
||||
|
||||
public UniTask OnStateUpdateAsync(float deltaTime)
|
||||
{
|
||||
return Panel.OnStateUpdateAsync(deltaTime);
|
||||
}
|
||||
|
||||
public UniTask OnStateExitAsync(IState old, IState newState)
|
||||
{
|
||||
return Panel.OnStateExitAsync(old, newState);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user