Пример #1
0
 void Awake()
 {
     _rangeWeaponHand = transform.Find("Hand1");
     _meleeWeaponHand = transform.Find("Hand2");
     _body            = transform.Find("Body/Robe");
     JumpSound        = DadaAudio.GetSoundEffect(JumpSound);
 }
Пример #2
0
    void Start()
    {
        CroakSound          = DadaAudio.GetSoundEffect(CroakSound);
        AboutToExplodeSound = DadaAudio.GetSoundEffect(AboutToExplodeSound);

        _detonationTime = Time.time + firstPhaseLength + secondPhaseLength;
        Invoke("AboutToDetonate", firstPhaseLength);
        StartCoroutine(Croak());
    }
Пример #3
0
    void Start()
    {
        flySound   = DadaAudio.GetSoundEffect(flySound);
        aggroSound = DadaAudio.GetSoundEffect(aggroSound);


        startTime  = Time.time;
        sleepTime += Time.time;
        spriteRend = GetComponent <SpriteRenderer>();

        _rigidbody = gameObject.GetComponent <Rigidbody2D>();
    }
Пример #4
0
    // 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);
    }
Пример #5
0
 void Start()
 {
     if (SpawnPoint == null)
     {
         SpawnPoint = transform.FindChild("Spawner");
     }
     _currentBullets = MaxBullets;
     if (RechargeEvery > 0)
     {
         InvokeRepeating("Recharge", 0, RechargeEvery);
     }
     OutOfAmmo = DadaAudio.GetSoundEffect(OutOfAmmo);
 }
Пример #6
0
    // 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;
         */
    }
Пример #7
0
 void Start()
 {
     soundEffect = DadaAudio.GetSoundEffect(soundEffect);
     soundEffect.PlayEffect();
 }
Пример #8
0
 void Start()
 {
     HitDamage = DadaAudio.GetSoundEffect(HitDamage);
     _hits     = new Dictionary <int, float>();
 }
Пример #9
0
 // Use this for initialization
 void Start()
 {
     PickupSound = DadaAudio.GetSoundEffect(PickupSound);
 }
Пример #10
0
 protected void Awake()
 {
     Time.timeScale = 1f;
     Current        = this;
     RespawnSound   = DadaAudio.GetSoundEffect(RespawnSound);
 }
Пример #11
0
 void Start()
 {
     ExplosionSound = DadaAudio.GetSoundEffect(ExplosionSound);
 }
Пример #12
0
 void Awake()
 {
     FireSound = DadaAudio.GetSoundEffect(FireSound);
 }
Пример #13
0
 protected void Awake()
 {
     _currentHitpoints = MaxHitpoints;
     DestroySound      = DadaAudio.GetSoundEffect(DestroySound);
     DamageSound       = DadaAudio.GetSoundEffect(DamageSound);
 }