Exemple #1
0
    // Use this for initialization
    void Start()
    {
        //各変数の初期化
        bossState   = BossState.Move;
        attackState = AttackState.ShotGun;

        player = GameObject.Find("Player");

        plusHP = GameObject.Find("BossPlusHP").GetComponent <BossPlusHP>();
        HP     = HP + plusHP.GetPlusHP();

        isOnlyRotate = true;

        stopTime = 5.0f;

        attackStartTimeCount = 0.0f;
        laserStartTime       = 60.0f;
        isAttackStart        = false;

        shotGunShotCount = 0;
        shotGundelay_R   = 0.0f;
        shotGundelay_L   = 2.0f;

        hormingShotStart = false;
        hormingShotEnd   = false;
        hormingStopTime  = 5.0f;

        laserStart     = false;
        laserEnd       = false;
        isPanelBreak   = false;
        panelBreakTime = 30.0f;

        sceneManager  = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
        soundsManager = GameObject.Find("ScriptManager").GetComponent <SoundsManager>();
    }
Exemple #2
0
    // Use this for initialization
    void Start()
    {
        //各変数の初期化
        defaultRotate = this.transform.rotation;

        bossState       = BossState.Move;
        attackState     = AttackState.Bullet;
        prevAttackState = AttackState.None;

        player = GameObject.Find("Player");

        plusHP = GameObject.Find("BossPlusHP").GetComponent <BossPlusHP>();
        HP     = HP + plusHP.GetPlusHP();

        attackStartTimeCount = 0.0f;
        isAttackStart        = false;

        stopTime = 5.0f;

        bulletTimeCount = 0.0f;
        bulletdelay     = 0.0f;

        homingShotCount  = 0;
        homingdelay_R    = 0.0f;
        homingdelay_L    = 0.0f;
        homingMaxDelay_R = 2.0f;
        homingMaxDelay_L = 4.0f;

        laserStart         = false;
        laserEnd           = false;
        isLaserAttackStart = false;

        isCounter    = false;
        counterStart = false;
        counterEnd   = false;

        m_Renderer          = GetComponent <Renderer>();
        m_Material          = m_Renderer.material;
        emissionColor       = m_Material.GetColor("_EmissionColor");
        defautEmissionColor = m_Material.GetColor("_EmissionColor");
        changeColor         = false;

        sceneManager = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
        isDie        = false;

        soundsManager = GameObject.Find("ScriptManager").GetComponent <SoundsManager>();
    }