private void OnTriggerEnter(Collider other) { if (other.tag.Equals("Player")) { DialogueQueue.AddMessage("Great hit!", 2); sentMessage = true; Doomed(); DataDump.SetInt("TrainingTargetsHit", DataDump.GetInt("TrainingTargetsHit") + 1); } }
private void OnTriggerEnter(Collider other) { if (other.tag.Equals("UpperBounds")) { inSpace = true; DialogueQueue.AddMessage("You're too close to the sun, Icarus!"); } if (other.tag.Equals("DockingBay")) { DataDump.SetInt("PlayerDocked", 1); DockingSequence(); } }
private void OnTriggerEnter(Collider other) { if (other.tag.Equals("PlayerBullet")) { GobPool.Destroy(other.gameObject); bossHP--; DataDump.SetInt("BossHP", bossHP); if (bossHP < 0) { Doomed(); } } }
private void OnTriggerEnter(Collider other) { if (other.tag.Equals("Player")) { DialogueQueue.AddMessage("Gah! Shoot them, don't ram them you maniac!", 2); sentMessage = true; Doomed(); } if (other.tag.Equals("PlayerBullet")) { DialogueQueue.AddMessage("Boom! Way to go!", 2); sentMessage = true; Doomed(); DataDump.SetInt("TrainingTargetsShot", DataDump.GetInt("TrainingTargetsShot") + 1); } }
private void OnTriggerEnter(Collider other) { if (other.tag.Equals("PlayerBullet")) { GobPool.Destroy(other.gameObject); DataDump.SetInt("BirdsKilled", DataDump.GetInt("BirdsKilled") + 1); var df = GobPool.Instantiate(deadFacade); df.transform.SetPositionAndRotation(transform.position, Quaternion.identity); Doomed(); } if (other.tag.Equals("Player")) { DataDump.SetInt("BirdsKilled", DataDump.GetInt("BirdsKilled") + 1); other.GetComponent <ShipDriver>().TakeDamage(1); var df = GobPool.Instantiate(deadFacade); df.transform.SetPositionAndRotation(transform.position, Quaternion.identity); Doomed(); } }
public IState Update() { if (progression == 0 && DataDump.GetInt("BirdsKilled") >= 20) { DataDump.SetInt("BirdsKilled", 0); progression++; birdSpawner.SetActive(true); } if (progression == 1 && DataDump.GetInt("BirdsKilled") >= 20) { DataDump.SetInt("BirdsKilled", 0); progression++; birdBomberSpawner.SetActive(true); } if (progression == 2 && DataDump.GetInt("BirdsKilled") >= 20) { DataDump.SetInt("BirdsKilled", 0); progression++; birdSpawner.SetActive(false); birdTightSpawner.SetActive(false); birdBomberSpawner.SetActive(false); } if (progression == 3) { timer -= Time.deltaTime; if (timer < 0) { loops--; progression = 0; birdTightSpawner.SetActive(true); timer = 10; if (loops <= 0) { return(new BossState()); } return(this); } } return(this); }
public void OnEnter() { DialogueQueue.AddMessage("Oh! There's a minor detail that I forgot to mention in your training..."); DialogueQueue.AddMessage("There's a party that's very interested in taking that package you're carrying."); DataDump.SetInt("BossHP", 750); MusicBox.ChangeMusic(MusicBox.Song.Boss); //birdSpawner = GameObject.Instantiate(birdSpawner, sd.transform.position + spawnerOffset + Vector3.up * -5, Quaternion.FromToRotation(Vector3.forward, Vector3.left)); //birdSpawner.GetComponent<SmoothTrack>().target = sd.transform; //birdSpawner.SetActive(false); //birdTightSpawner = GameObject.Instantiate(birdTightSpawner, sd.transform.position + spawnerOffset + Vector3.up * 5, Quaternion.FromToRotation(Vector3.forward, Vector3.left)); //birdTightSpawner.GetComponent<SmoothTrack>().target = sd.transform; //birdTightSpawner.SetActive(true); //birdBomberSpawner = GameObject.Instantiate(birdBomberSpawner, sd.transform.position + spawnerOffset, Quaternion.FromToRotation(Vector3.forward, Vector3.left)); //birdBomberSpawner.GetComponent<SmoothTrack>().target = sd.transform; //birdBomberSpawner.SetActive(false); //hpSpawner = GameObject.Instantiate(hpSpawner, sd.transform.position + spawnerOffset + Vector3.up * 5, Quaternion.FromToRotation(Vector3.forward, Vector3.left)); //hpSpawner.GetComponent<SmoothTrack>().target = sd.transform; //hpSpawner.SetActive(true); }