示例#1
0
 public void Flip()
 {
     // flip the player from the top to the bottom or vice versa
     sfx.PlayEffect();
     flipping        = true;
     oldGravityScale = rb.gravityScale;
     rb.gravityScale = 0;
     transform.SetParent(rodTransform);
 }
示例#2
0
    private void DyingEnter()
    {
        // @TODO: Remove hard-coded value.
        m_DeathSystem.CollectDeath();
        m_DeathSystem.PlayDeathAnimation(this.transform.position);
        m_ScoreSystem.Collect(100);
        m_ClientSpawnSystem.DespawnClient(this.gameObject);

        SoundEffectController.PlayEffect(EffectType.ClientDies);
    }
示例#3
0
    public void SpawnClient(int startingAge)
    {
        ClientCount++;

        GameObject ClientPrefab     = GetRandomClientPrefab();
        var        clientGameObject = Instantiate(ClientPrefab, SpawnLocation.position, SpawnLocation.rotation, ClientParent);
        var        clientData       = clientGameObject.GetComponent <ClientData>();

        clientData.Age = startingAge;

        m_SpawnedClients.Add(clientGameObject);

        SoundEffectController.PlayEffect(EffectType.ClientEnter);
    }
示例#4
0
 private void PlayProductSoldSound(Product product)
 {
     // @TODO: Implement unique sound fx
     SoundEffectController.PlayEffect(EffectType.ItemSold);
 }
示例#5
0
    private void OnExitArrive()
    {
        m_ClientSpawnSystem.DespawnClient(this.gameObject);

        SoundEffectController.PlayEffect(EffectType.ClientLeave);
    }