Renamed Ammo to Bomb

This commit is contained in:
Denis-Cosmin Nutiu 2019-08-24 19:23:36 +03:00
parent 13ab2ddb9c
commit 22af655678
18 changed files with 5 additions and 7 deletions

View file

@ -4,7 +4,7 @@ using src.Base;
using src.Managers;
using UnityEngine;
namespace src.Ammo
namespace src.Bomb
{
public class BombCameraShake : GameplayComponent
{

View file

@ -4,7 +4,7 @@ using src.Helpers;
using src.Managers;
using UnityEngine;
namespace src.Ammo
namespace src.Bomb
{
public class BombController : GameplayComponent, IExplosable
{

View file

@ -1,8 +1,7 @@
using src.Base;
using src.Helpers;
using src.Managers;
namespace src.Ammo
namespace src.Bomb
{
public class BombExplosion : GameplayComponent
{

View file

@ -27,7 +27,7 @@ namespace src.Helpers
Resources.Load<GameObject>("Items/GoldenBombUpgrade");
/* Items */
public static readonly GameObject PlayerBomb =
public static readonly GameObject Bomb =
Resources.Load<GameObject>("Items/Bomb");
public static readonly GameObject BombExplosion =
Resources.Load<GameObject>("Items/BombExplosion");

View file

@ -1,6 +1,5 @@
using System;
using System.ComponentModel;
using src.Ammo;
using src.Base;
using src.Helpers;
using src.Managers;
@ -151,7 +150,7 @@ namespace src.Player
var newPosition = new Vector2(absX, absY);
if (!_bombsUtil.CanPlaceBomb(newPosition)) return;
Instantiate(PrefabAtlas.PlayerBomb, newPosition, Quaternion.identity);
Instantiate(PrefabAtlas.Bomb, newPosition, Quaternion.identity);
_bombsUtil.RegisterBomb(newPosition);
}