23 lines
624 B
C#
23 lines
624 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Text;
|
|
using UnityEngine;
|
|
|
|
namespace Thousandto.Plugins.Common
|
|
{
|
|
/// <summary>
|
|
/// 脚本中要缓存一些GameObject对象
|
|
/// 不用使用gameObject,transform等方法,
|
|
/// 因为这些方法会导致查找操作,效率很低,
|
|
/// 所以继承此脚本,用于保存这些属性的引用,通过这些引用会得到更好的效率
|
|
/// </summary>
|
|
public interface IMonoCache
|
|
{
|
|
//gameObject的引用
|
|
GameObject GameObjectInst { get; }
|
|
//transform的引用
|
|
Transform TransformInst { get; }
|
|
}
|
|
}
|