void Awake() { _rangeWeaponHand = transform.Find("Hand1"); _meleeWeaponHand = transform.Find("Hand2"); _body = transform.Find("Body/Robe"); JumpSound = DadaAudio.GetSoundEffect(JumpSound); }
void Start() { CroakSound = DadaAudio.GetSoundEffect(CroakSound); AboutToExplodeSound = DadaAudio.GetSoundEffect(AboutToExplodeSound); _detonationTime = Time.time + firstPhaseLength + secondPhaseLength; Invoke("AboutToDetonate", firstPhaseLength); StartCoroutine(Croak()); }
void Start() { flySound = DadaAudio.GetSoundEffect(flySound); aggroSound = DadaAudio.GetSoundEffect(aggroSound); startTime = Time.time; sleepTime += Time.time; spriteRend = GetComponent <SpriteRenderer>(); _rigidbody = gameObject.GetComponent <Rigidbody2D>(); }
// Use this for initialization void Start() { PoopSound = DadaAudio.GetSoundEffect(PoopSound); TechnoSound = DadaAudio.GetSoundEffect(TechnoSound); _anim = GetComponent <Animator>(); altitude = transform.position.y; //Goto(FinalPoint.position,TimeToTravel); Invoke("WaitAtPoint", WaitTimeAtStops); }
void Start() { if (SpawnPoint == null) { SpawnPoint = transform.FindChild("Spawner"); } _currentBullets = MaxBullets; if (RechargeEvery > 0) { InvokeRepeating("Recharge", 0, RechargeEvery); } OutOfAmmo = DadaAudio.GetSoundEffect(OutOfAmmo); }
// Use this for initialization void Start() { _portcullis = transform.parent.FindChild("Portcullis").gameObject; OpenSound = DadaAudio.GetSoundEffect(OpenSound); CloseSound = DadaAudio.GetSoundEffect(CloseSound); /* * if (ownedByTeamNumber == 0) * _portcullis.GetComponent<SpriteRenderer>().color = Color.red; * else if (ownedByTeamNumber == 1) * _portcullis.GetComponent<SpriteRenderer>().color = Color.blue; * else if (ownedByTeamNumber == 2) * _portcullis.GetComponent<SpriteRenderer>().color = Color.green; * else if (ownedByTeamNumber == 3) * _portcullis.GetComponent<SpriteRenderer>().color = Color.yellow; */ }
void Start() { soundEffect = DadaAudio.GetSoundEffect(soundEffect); soundEffect.PlayEffect(); }
void Start() { HitDamage = DadaAudio.GetSoundEffect(HitDamage); _hits = new Dictionary <int, float>(); }
// Use this for initialization void Start() { PickupSound = DadaAudio.GetSoundEffect(PickupSound); }
protected void Awake() { Time.timeScale = 1f; Current = this; RespawnSound = DadaAudio.GetSoundEffect(RespawnSound); }
void Start() { ExplosionSound = DadaAudio.GetSoundEffect(ExplosionSound); }
void Awake() { FireSound = DadaAudio.GetSoundEffect(FireSound); }
protected void Awake() { _currentHitpoints = MaxHitpoints; DestroySound = DadaAudio.GetSoundEffect(DestroySound); DamageSound = DadaAudio.GetSoundEffect(DamageSound); }