// Start is called before the first frame update void Start() { move = GetComponent <BossMove>(); Hitpoint = GetComponent <BossHitpoint>(); maxHp = Hitpoint.GetHp(); timer = (int)shotTime * 60; state = State.Easy; }
void Awake() { if (!bossMove) bossMove = GetComponent<BossMove>(); if (!bossAnimator) bossAnimator = GetComponent<BossAnimation>(); if (!bossFight) bossFight = GetComponent<BossFight>(); }
private void setlocalMoveDirBoss(BossMove.moveDir d) { if (d == BossMove.moveDir.right) { bossCharging = true; Spawn_Boost(); } else bossCharging = false; }
void Start() { countTime = 0.8f; SetColor(HeartImage, 0); SetColor(SliderImage, 0); SetColor(sliderBack, 0); bossmove = true; _instance = this; playerTrans = GameObject.FindGameObjectWithTag("player").transform; dir = playerTrans.position - transform.position; rigidbody = GetComponent <Rigidbody>(); animator = GetComponent <Animator>(); }
void ToggleBoss() { GameObject boss = GameObject.FindWithTag("Boss"); if (boss != null) { BossMove moveScript = boss.GetComponent <BossMove> (); moveScript.enabled = !moveScript.enabled; EnemyDoubleShot dShotScript = boss.GetComponent <EnemyDoubleShot> (); dShotScript.enabled = !dShotScript.enabled; EnemyFire[] fireScript = boss.GetComponents <EnemyFire> (); fireScript[0].enabled = !fireScript[0].enabled; fireScript[1].enabled = !fireScript[1].enabled; } }
// Start is called before the first frame update void Start() { boss = GameObject.FindObjectOfType <BossMove>(); orbit = GameObject.Find("DroneOrbit"); fireCounter = fireDelay; x = Random.Range(-BossDist, BossDist); y = Random.Range(-BossDist, BossDist); // tipe = Random.Range(0, 2); while (x > -2 && x < 2) { x = Random.Range(-BossDist, BossDist); } while (y > -2 && y < 2) { y = Random.Range(-BossDist, BossDist); } start = true; player = PlayerController.instance.transform; attackDistance = (boss.gameObject.transform.position.z - player.position.z) / 2; }
private void Start() { boss = GetComponent <BossMove>(); }
private void Start() { //originalRotation = transform.localRotation; //UpdateUI(); device = SteamVR_Controller.Input ((int)trackedObj.index); IsMagic1 = false; IsMagic2 = false; MagicTimer1 = 0; MagicTimer2 = 0; boss = GameObject.FindGameObjectWithTag ("boss"); bossMove = boss.GetComponent<BossMove> (); }
private void bossMove_onMoveChange(BossMove.moveDir moveDir) { bossAnimator.MoveChange((int)moveDir); }
void Start() { anim = transform.GetComponent <Animator>(); move = transform.GetComponent <BossMove>(); effects = Resources.LoadAll <GameObject>("Effect/"); }
void SetBossSpawn(float location) { BossMove script = boss.GetComponent <BossMove>(); script.xBoarder = location; }
private void ChangeMove(BossType move) { m_CurrentMove?.Release(); m_CurrentMove = m_BossMap[move]; m_CurrentMove.Initialize(); }
public LayerMask whatIsWall; // 뭐가 벽인지 알아야 때려박고 기절한다. protected override void Awake() { base.Awake(); ai = GetComponent <EnemyAI>(); move = GetComponent <BossMove>(); }
private void Awake() { instance = this; }