-- GameObjectにアタッチされてるエフェクトを格納する local _Effect = vci.assets.GetEffekseerEmitter("EffectItem") -- エフェクトの再生を開始する _Effect._ALL_Play() function onUse() -- ランダムで色を作成する local color = Color.__new(math.random(0,100) * 0.01, math.random(0,100) * 0.01, math.random(0,100) * 0.01, 1) _Effect.SetAllColor(color) end