void updateStageKill() { if (side == GameBattleAttackResultSide.Left) { rightAnimation.setAlpha(alpha); } else { leftAnimation.setAlpha(alpha); } }
void updateStage() { transform.localScale = new Vector3(scale, scale, scale); if (floorAnimation != null) { floorAnimation.setAlpha(alpha); } blackImage.color = new Color(0.0f, 0.0f, 0.0f, alpha); if (kill) { if (side == GameBattleAttackResultSide.Left) { if (leftAnimation != null) { leftAnimation.setAlpha(alpha); } } else { if (rightAnimation != null) { rightAnimation.setAlpha(alpha); } } } else { if (attackerAnimation != null) { attackerAnimation.setAlpha(alpha); } if (leftAnimation != null) { leftAnimation.setAlpha(alpha); } if (rightAnimation != null) { rightAnimation.setAlpha(alpha); } } }
public void setAlpha(float a) { gameAnimation.setAlpha(a); }