Esempio n. 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>();
    }
Esempio n. 2
0
    private int rand;                     //各アイテムの出現確率

    // Use this for initialization
    void Start()
    {
        //各変数の初期化
        sceneManager    = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
        itemInstancePos = GameObject.FindGameObjectsWithTag("ItemPos");
        itemGetCount    = 0;
        randomPos       = 0;
    }
Esempio n. 3
0
 private Transform goalPos;   //ゴール位置
 // Use this for initialization
 void Start()
 {
     //各変数の初期化
     sceneManager      = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
     sceneManager_Fade = Camera.main.GetComponent <Scene_Manager_Fade>();
     timeLimit         = GameObject.Find("TimeTex").GetComponent <TimeLimit>();
     m_RestartPoint    = initRestartPoint;
     isRespawn         = false;
     //goalPos = GameObject.Find("GoalPoint").GetComponent<Transform>();
 }
Esempio n. 4
0
    // Use this for initialization
    void Start()
    {
        //各変数の初期化
        isHitRay       = false;
        timer          = 1.5f;
        scene_Fade     = Camera.main.GetComponent <Scene_Manager_Fade>();
        scene_Manager  = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
        sounds_Manager = GameObject.Find("ScriptManager").GetComponent <SoundsManager>();

        ability = GameObject.Find("PlayerAbility").GetComponent <PlayerAbility>();
        plusHP  = GameObject.Find("BossPlusHP").GetComponent <BossPlusHP>();
    }
Esempio n. 5
0
    // Use this for initialization
    void Start()
    {
        //各変数の初期化
        isHitRay    = false;
        isChange    = false;
        isSelect_No = false;
        timer       = 1.5f;

        scene_manager  = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
        sounds_manager = GameObject.Find("ScriptManager").GetComponent <SoundsManager>();
        tv_cont        = GameObject.Find("TVModelContObj").GetComponent <TVModelController>();
    }
Esempio n. 6
0
    void Start()
    {
        if (gameObject.GetComponent <Text>() == null)
        {
            gameObject.AddComponent <Text>();
        }
        isCountStop = false;
        m_Text      = GetComponent <Text>();
        timeCount   = 0;
        coron       = " : ";

        plusHP        = GameObject.Find("BossPlusHP").GetComponent <BossPlusHP>();
        scene_Manager = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
        scene_Fade    = Camera.main.GetComponent <Scene_Manager_Fade>();
    }
Esempio n. 7
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>();
    }
Esempio n. 8
0
 // Use this for initialization
 void Start()
 {
     isDie        = false;
     sceneManager = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
 }
Esempio n. 9
0
 // Use this for initialization
 void Start()
 {
     player        = GameObject.Find("Player");
     scene_manager = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
     scene_Fade    = Camera.main.GetComponent <Scene_Manager_Fade>();
 }
Esempio n. 10
0
 // Use this for initialization
 void Start()
 {
     scene_Fade    = Camera.main.GetComponent <Scene_Manager_Fade>();
     scene_manager = GameObject.Find("ScriptManager").GetComponent <Scene_Manager_>();
     isSceneChage  = false;
 }