Ejemplo n.º 1
0
    public void OnDestroy()
    {
        allBottles.Remove(this);
        Instantiate(HomebrewGame.Me.prefabDeadBottle).transform.position = transform.position;
        GameAudio.Me.PlaySmash();

        if (Flags == PersistentInteraction.Combination(Elements.WATER, Elements.EARTH))
        {
            HazardMud.SpawnBlob(gameObject);
        }
        if (Flags == PersistentInteraction.Combination(Elements.FIRE, Elements.EARTH))
        {
            HazardMagma.SpawnBlob(gameObject);
        }
        if (Flags == PersistentInteraction.Combination(Elements.FIRE, Elements.WATER))
        {
            HazardSteam.SpawnBlob(gameObject);
        }
    }
Ejemplo n.º 2
0
 private void Blob()
 {
     HazardMagma.SpawnBlob(gameObject);
     t = period;
 }