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; | |
//资源管理 | |
public class ResourcesManager | |
{ | |
public static T Load<T>(string folder, string fileName) where T : UnityEngine.Object | |
{ | |
#if UNITY_EDITOR | |
T obj = UnityEditor.AssetDatabase.LoadAssetAtPath<T>(string.Format("Assets/{0}/{1}", folder, fileName)); | |
if (null != obj) | |
{ |
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 System.Collections; | |
using System; | |
public class StorageEnergy | |
{ | |
public static float CurrentTime { get { return Time.fixedTime; } } | |
public float Persent { get; private set; } | |
public Action onStart; | |
public Action onFinished; |
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
//#define _CD_Use_MonoBehaviour_ | |
#define _CD_Use_Singlton_ | |
using UnityEngine; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System; | |
public class CDManager | |
#if _CD_Use_MonoBehaviour_ | |
: MonoBehaviour |
NewerOlder