Não pode escolher mais do que 25 tópicos
Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
|
- using System;
- using UnityEngine;
-
- public class MagicalReference<T> where T : UnityEngine.Object
- {
- public T reference
- {
- get
- {
- if (this._ref == null)
- {
- this._ref = UnityEngine.Object.FindObjectOfType<T>();
- }
- return this._ref;
- }
- }
-
- private T _ref;
- }
|