您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
 
 
 

20 行
292 B

  1. using System;
  2. using UnityEngine;
  3. public class MagicalReference<T> where T : UnityEngine.Object
  4. {
  5. public T reference
  6. {
  7. get
  8. {
  9. if (this._ref == null)
  10. {
  11. this._ref = UnityEngine.Object.FindObjectOfType<T>();
  12. }
  13. return this._ref;
  14. }
  15. }
  16. private T _ref;
  17. }