技能主要更新,修复卡顿并加入动画,以及各种其他更新。
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine.UI;
|
||||
@@ -849,7 +849,7 @@ namespace AiryUI
|
||||
{
|
||||
float t = elapsedTime / animationHideDuration;
|
||||
|
||||
rectTransformComponent.rotation = Quaternion.Euler ( Vector3.Lerp ( Quaternion.ToEulerAngles ( rotation_initial ) , rotateTo , t ) );
|
||||
rectTransformComponent.rotation = Quaternion.Euler ( Vector3.Lerp ( rotation_initial.eulerAngles * Mathf.Deg2Rad , rotateTo , t ) );
|
||||
|
||||
elapsedTime += DeltaTimeFor_HIDE;
|
||||
yield return null;
|
||||
@@ -1149,4 +1149,4 @@ namespace AiryUI
|
||||
{
|
||||
TimeScaleDependent = 0, NotTimeScaleDependent = 1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using UnityEditor;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace AiryUI
|
||||
{
|
||||
InstantiateController ();
|
||||
|
||||
manager = FindObjectOfType<EscButtonController> ();
|
||||
manager = Object.FindAnyObjectByType<EscButtonController> ();
|
||||
|
||||
if ( manager != null )
|
||||
{
|
||||
@@ -85,7 +85,7 @@ namespace AiryUI
|
||||
|
||||
private void InstantiateController ()
|
||||
{
|
||||
if ( !FindObjectOfType<EscButtonController> () )
|
||||
if ( Object.FindAnyObjectByType<EscButtonController> () == null )
|
||||
{
|
||||
GameObject controller = new GameObject ( "[Airy UI] Esc Button Controller" );
|
||||
controller.AddComponent<EscButtonController> ();
|
||||
@@ -115,4 +115,4 @@ namespace AiryUI
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user