Sounds added
This commit is contained in:
@@ -3,7 +3,8 @@ using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Bomb : MonoBehaviour {
|
||||
Animator animator;
|
||||
|
||||
Animator animator;
|
||||
Rigidbody2D rigidBody;
|
||||
|
||||
public float timer;
|
||||
@@ -15,11 +16,11 @@ public class Bomb : MonoBehaviour {
|
||||
public Respawner respawner; //this can be respawned
|
||||
|
||||
float birthTime;
|
||||
|
||||
|
||||
void Awake() {
|
||||
animator = GetComponent<Animator> ();
|
||||
rigidBody = GetComponent<Rigidbody2D> ();
|
||||
|
||||
if (timer < 0) {
|
||||
animator.enabled = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user