Ejemplo n.º 1
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else if (instance != this)
        {
            Destroy(this);
            return;
        }

        musicInstance            = RuntimeManager.CreateInstance(music);
        gameStartInstance        = RuntimeManager.CreateInstance(gameStart);
        nfc_detect_leftInstance  = RuntimeManager.CreateInstance(nfc_detect_left);
        nfc_detect_rightInstance = RuntimeManager.CreateInstance(nfc_detect_right);
        killInstance             = RuntimeManager.CreateInstance(kill);
        bothDestroyedInstance    = RuntimeManager.CreateInstance(bothDestroyed);
        blockedInstance          = RuntimeManager.CreateInstance(blocked);
        baseDamageInstance       = RuntimeManager.CreateInstance(baseDamage);
        evolveP1       = RuntimeManager.CreateInstance(evolve);
        evolveP2       = RuntimeManager.CreateInstance(evolve);
        summonInstance = RuntimeManager.CreateInstance(summon);
    }
Ejemplo n.º 2
0
    public void PlayRandomMusic()
    {
        var clip = _musicClips[_random.Next(_musicClips.Length)];

        _event = Fmod.CreateInstance(clip);
        _event.start();
    }
Ejemplo n.º 3
0
    public void Initialize()
    {
        _transform = gameObject.GetComponent <Transform>();

        _emitter = Fmod.CreateInstance(_eventName);
        _emitter.getParameter("airspeed", out _airspeedParam);
        _emitter.getParameter("AoA", out _angleOfAttackParam);
    }
Ejemplo n.º 4
0
    // Start is called before the first frame update
    void Start()
    {
        rb = this.GetComponent <Rigidbody>();
        mouvementSpeedBase = mouvementSpeed;


        snailMovementEvent = RuntimeManager.CreateInstance(snailMovementRef);
        snailMovementEvent.start();
        snailMovementEvent.setPaused(true);
    }
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else if (instance != this)
        {
            Destroy(this);
            return;
        }

        //gameBeginInstance = RuntimeManager.CreateInstance(gameBegin);
        monsterAppearanceInstance = RuntimeManager.CreateInstance(monsterAppearance);
        negotiationBeginInstance  = RuntimeManager.CreateInstance(negotiationBegin);
        scanPositifInstance       = RuntimeManager.CreateInstance(scanPositif);
        scanNegatifInstance       = RuntimeManager.CreateInstance(scanNegatif);
        attachStuffInstance       = RuntimeManager.CreateInstance(attachStuff);
        deattachStuffInstance     = RuntimeManager.CreateInstance(deattachStuff);
        validationStuffInstance   = RuntimeManager.CreateInstance(validationStuff);
        endOfNegotiationInstance  = RuntimeManager.CreateInstance(endOfNegotiation);
        lanchFightInstance        = RuntimeManager.CreateInstance(lanchFight);
        livingCrowdInstance       = RuntimeManager.CreateInstance(livingCrowd);
        monsterCryInstance        = RuntimeManager.CreateInstance(monsterCry);
        attackInstance            = RuntimeManager.CreateInstance(attack);
        damageRecieveInstance     = RuntimeManager.CreateInstance(damageRecieve);
        fireDamageInstance        = RuntimeManager.CreateInstance(fireDamage);
        iceDamageInstance         = RuntimeManager.CreateInstance(iceDamage);
        electricDamageInstance    = RuntimeManager.CreateInstance(electricDamage);
        idleMonsterInstance       = RuntimeManager.CreateInstance(idleMonster);
        deadMonsterCryInstance    = RuntimeManager.CreateInstance(deadMonsterCry);
        victoryCryInstance        = RuntimeManager.CreateInstance(victoryCry);
        collectGoldInstance       = RuntimeManager.CreateInstance(collectGold);
        levelUpingInstance        = RuntimeManager.CreateInstance(levelUping);
        monsterVictoryCryInstance = RuntimeManager.CreateInstance(monsterVictoryCry);
        deathOfGladiatorInstance  = RuntimeManager.CreateInstance(deathOfGladiator);
        losingCrowdInstance       = RuntimeManager.CreateInstance(losingCrowd);
        endOfFightInstance        = RuntimeManager.CreateInstance(endOfFight);
        //endOfGameInstance = RuntimeManager.CreateInstance(endOfGame);
    }
Ejemplo n.º 6
0
 private void Awake()
 {
     _event = Fmod.CreateInstance("event:/Amb/amb_2D");
     _event.getParameter("altitude", out _altitude);
 }
Ejemplo n.º 7
0
 private void Awake()
 {
     uphillEvent = RuntimeManager.CreateInstance(uphillRef);
     uphillEvent.start();
 }
Ejemplo n.º 8
0
 void Awake()
 {
     _emitter = Fmod.CreateInstance("event:/wingsuit/proximity_ground");
     _emitter.getParameter("altitude_ground", out _altitudeGround);
     _emitter.getParameter("airspeed", out _airspeed);
 }
Ejemplo n.º 9
0
 void Start()
 {
     _collisionSource.OnCollisionEntered += OnCollisionEntered;
     _collisionSoundEvent = Fmod.CreateInstance("event:/wingsuit/Collisions/ground");
 }
Ejemplo n.º 10
0
 public void PlayIntro()
 {
     _event = Fmod.CreateInstance(_introMusic);
     _event.start();
 }