Пример #1
0
    private void Awake()
    {
        if (Instance != null)
        {
            throw new UnityException("已经有单例了,不能重复赋值");
        }

        Instance = this;
    }
Пример #2
0
    public void StartMotion(TextureInstanced system)
    {
        if (_coroutine == null)
        {
            Init();
            TimeTmep = 0f;

            _coroutine = StartCoroutine(WaitStart());
        }
        else
        {
            if (_isEnterUpdate)
            {
                Dispatch(ComputeBuffer);
            }
        }
    }