Exemple #1
0
    IEnumerator CoSpin()
    {
        float a = 0f;

        while (gameObject.activeSelf)
        {
            MyTransform.SetLocalEulerAnglesY(a);
            a += spinSpeed * Time.deltaTime;
            yield return(null);
        }
    }