protected override void Start() { base.Start(); transform.position = new Vector3(transform.position.x, transform.position.y, Random.Range(0.0f, 1.0f)); daggerSpawner = daggerSpawnerObject.GetComponent <DaggerSpawner>(); daggerSpawnPosition = new Vector3(0.8f, -0.3f, Random.Range(0.0f, 1.0f)); poisonBombSpawner = poisonBombSpawnerObject.GetComponent <PoisonBombSpawner>(); poisonBombSpawnPosition = new Vector3(0.8f, -0.3f, Random.Range(0.0f, 1.0f)); siegeMode = true; shielderMode = false; waitTime = new WaitForSeconds(coroutineCycle); StartCoroutine(Fsm()); playerMask = 1 << 8; }
void Start() { daggerSpawner = transform.parent.GetComponent <DaggerSpawner>(); }