enumはint型にキャストできるが、
一旦、intにしてfloatにするのと、
そのままfloatでキャストできるか実験してみる。
色を出したいのでLogErrorのログで出してみる。
Debug.LogError ((float)((int)AttackType.SMALL)); Debug.LogError ((float)(AttackType.SMALL)); Debug.LogError ((float)((int)AttackType.NORMAL)); Debug.LogError ((float)(AttackType.NORMAL)); Debug.LogError ((float)((int)AttackType.LARGE)); Debug.LogError ((float)(AttackType.LARGE));
実験した。