Example #1
0
    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();
    }
Example #2
0
 private void SetDrawLinesMode(DrawLinesEnum mode)
 {
     mDrawLinesMode = mode;
     mBoss.SetDrawShapeLine(GetDrawShapeLine());
     mBoss.SetDrawTrajectories(GetDrawTrajectories());
 }