private void Awake() { if (Instance != null) { throw new UnityException("已经有单例了,不能重复赋值"); } Instance = this; }
public void StartMotion(TextureInstanced system) { if (_coroutine == null) { Init(); TimeTmep = 0f; _coroutine = StartCoroutine(WaitStart()); } else { if (_isEnterUpdate) { Dispatch(ComputeBuffer); } } }