|
@@ -486,7 +486,7 @@ public class AttackController : MonoBehaviour
|
|
|
bullet.canTransmit = true;
|
|
bullet.canTransmit = true;
|
|
|
}
|
|
}
|
|
|
Demonic demonic = owner as Demonic;
|
|
Demonic demonic = owner as Demonic;
|
|
|
- if (demonic.canSizeChange)
|
|
|
|
|
|
|
+ if (demonic && demonic.canSizeChange)
|
|
|
{
|
|
{
|
|
|
float rate = demonic.bigSoldier.nowSize;
|
|
float rate = demonic.bigSoldier.nowSize;
|
|
|
bullet.transform.localScale = new Vector3(bullet.originalScale.x * rate, bullet.originalScale.y * rate, 1);
|
|
bullet.transform.localScale = new Vector3(bullet.originalScale.x * rate, bullet.originalScale.y * rate, 1);
|