public void EndAnimation() { fieldManager.establishRoleIndex++; Debug.Log("役アニメーション終了"); if (fieldManager.establishRoleIndex == flushCount) { fieldManager.EstablishRole_EndAnimation(); } else { gameObject.SetActive(false); //fieldManager.PlayEstablishRoleAnimation(); } }