This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEditor; | |
| using UnityEditorInternal; | |
| using System.Collections.Generic; | |
| using UnityEditor.AnimatedValues; | |
| [CustomEditor(typeof(UnityEngine.Object), true, isFallback = true)] | |
| [CanEditMultipleObjects] | |
| public class CustomEditorBase : Editor | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * Unity Timer | |
| * | |
| * Version: 1.0 | |
| * By: Alexander Biggs + Adam Robinson-Yu | |
| */ | |
| using System; | |
| using System.Collections.Generic; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace Aster.Util.StringHandler | |
| { | |
| public class ConditionExpressionParser | |
| { | |
| public static bool Compute(bool[] p_LogicValue, string p_Expession) | |
| { | |
| //p_LogicValue = new bool[6] { true, false, false, true, false, true }; | |
| //假设所有bool值都用一个字母表示,也可以使用多个字母,但是需要统一字母的数量 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Cysharp.Threading.Tasks; | |
| using Newtonsoft.Json; | |
| using Newtonsoft.Json.Serialization; | |
| namespace Yogi.JsonTools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using UnityEngine; | |
| namespace Yogi.Tools | |
| { | |
| /// <summary> | |
| /// 拓展Debug绘制线段 | |
| /// </summary> | |
| public static class DebugEx | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections.Generic; | |
| using Sirenix.OdinInspector; | |
| using Sunset.Const; | |
| using UnityEngine; | |
| using Random = UnityEngine.Random; | |
| public class AnalysisLayerTools : MonoBehaviour | |
| { | |
| [System.Serializable] | |
| public struct Data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**************************************************************************** | |
| * Copyright (c) 2021.4 liangxie | |
| * | |
| * https://qframework.cn | |
| * https://github.com/liangxiegame/QFramework | |
| * https://gitee.com/liangxiegame/QFramework | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /**************************************************************************** | |
| * Copyright (c) 2017 ~ 2020.10 liangxie | |
| * | |
| * https://qframework.cn | |
| * https://github.com/liangxiegame/QFramework | |
| * https://gitee.com/liangxiegame/QFramework | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| /// <summary> | |
| /// 一些UI工具 | |
| /// </summary> | |
| public static class UITipsTools | |
| { | |
| /// <summary> | |
| /// 基于鼠标位置 设置UI位置, 并且设定锚点为鼠标的位置方向 (Overlay) | |
| /// </summary> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.EventSystems; | |
| public class UIEventListener : EventTrigger | |
| { | |
| // refactor proper name | |
| public System.Action onClick; | |
| public System.Action<GameObject> onSelect; | |
| public System.Action<GameObject> onUpdateSelect; |
NewerOlder