Ejemplo n.º 1
0
 public void CreateBacteria(Vector2 location, Vector2 direction)
 {
     BacteriaBubble bacteria = new BacteriaBubble(location, direction);
     bacteriaContainer_.AddChild(bacteria);
     bacteria.play("idle");
     bacterias_.Add(bacteria);
     totalBacterialCreated_++;
 }
    public void CreateBacteria(Vector2 location, Vector2 direction)
    {
        BacteriaBubble bacteria = new BacteriaBubble(location, direction);

        bacteriaContainer_.AddChild(bacteria);
        bacteria.play("idle");
        bacterias_.Add(bacteria);
        totalBacterialCreated_++;
    }
    public void HandleGotBacteria(BacteriaBubble bacteria)
    {
        bacteriaContainer_.RemoveChild(bacteria);
        bacterias_.Remove(bacteria);

        dyingBacteriaHolder_.AddChild(bacteria);
        dyingBacterias_.Add(bacteria);

        bacteria.play("pop");

        FSoundManager.PlaySound("bacteria_pop");
    }
Ejemplo n.º 4
0
    public void HandleGotBacteria(BacteriaBubble bacteria)
    {
        bacteriaContainer_.RemoveChild(bacteria);
        bacterias_.Remove(bacteria);

        dyingBacteriaHolder_.AddChild(bacteria);
        dyingBacterias_.Add(bacteria);

        bacteria.play("pop");

        FSoundManager.PlaySound("bacteria_pop");
    }