private void Setup() { if (mBossPrefab == null) { Debug.LogError("No LBoss prefab"); return; } GameObject boss = GameObject.Instantiate(mBossPrefab); mBoss = boss.GetComponent <LypsBoss>(); if (mBoss == null) { Debug.LogError("No LypsBoss component"); return; } mBoss.SetParticlePrefab(mParticlePrefab[mCurrentParticleIndex]); mBoss.Setup(mMajorRadius, mTrajectoryRadius, mNumberTrajectories, mPhase, mSpeed); bool drawTrajectories = GetDrawTrajectories(); mBoss.SetDrawTrajectories(drawTrajectories); bool drawShapeLine = GetDrawShapeLine(); mBoss.SetDrawShapeLine(drawShapeLine); mBoss.SwitchAttachParticlesOnOff(mAttachParticles); SetupCamera(); }
public void SwitchAttachParticles() { mAttachParticles = !mAttachParticles; mBoss.SwitchAttachParticlesOnOff(mAttachParticles); }