Renamed Ammo to Bomb
This commit is contained in:
parent
13ab2ddb9c
commit
22af655678
18 changed files with 5 additions and 7 deletions
|
@ -4,7 +4,7 @@ using src.Base;
|
||||||
using src.Managers;
|
using src.Managers;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace src.Ammo
|
namespace src.Bomb
|
||||||
{
|
{
|
||||||
public class BombCameraShake : GameplayComponent
|
public class BombCameraShake : GameplayComponent
|
||||||
{
|
{
|
|
@ -4,7 +4,7 @@ using src.Helpers;
|
||||||
using src.Managers;
|
using src.Managers;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
namespace src.Ammo
|
namespace src.Bomb
|
||||||
{
|
{
|
||||||
public class BombController : GameplayComponent, IExplosable
|
public class BombController : GameplayComponent, IExplosable
|
||||||
{
|
{
|
|
@ -1,8 +1,7 @@
|
||||||
using src.Base;
|
using src.Base;
|
||||||
using src.Helpers;
|
|
||||||
using src.Managers;
|
using src.Managers;
|
||||||
|
|
||||||
namespace src.Ammo
|
namespace src.Bomb
|
||||||
{
|
{
|
||||||
public class BombExplosion : GameplayComponent
|
public class BombExplosion : GameplayComponent
|
||||||
{
|
{
|
|
@ -27,7 +27,7 @@ namespace src.Helpers
|
||||||
Resources.Load<GameObject>("Items/GoldenBombUpgrade");
|
Resources.Load<GameObject>("Items/GoldenBombUpgrade");
|
||||||
|
|
||||||
/* Items */
|
/* Items */
|
||||||
public static readonly GameObject PlayerBomb =
|
public static readonly GameObject Bomb =
|
||||||
Resources.Load<GameObject>("Items/Bomb");
|
Resources.Load<GameObject>("Items/Bomb");
|
||||||
public static readonly GameObject BombExplosion =
|
public static readonly GameObject BombExplosion =
|
||||||
Resources.Load<GameObject>("Items/BombExplosion");
|
Resources.Load<GameObject>("Items/BombExplosion");
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using src.Ammo;
|
|
||||||
using src.Base;
|
using src.Base;
|
||||||
using src.Helpers;
|
using src.Helpers;
|
||||||
using src.Managers;
|
using src.Managers;
|
||||||
|
@ -151,7 +150,7 @@ namespace src.Player
|
||||||
var newPosition = new Vector2(absX, absY);
|
var newPosition = new Vector2(absX, absY);
|
||||||
if (!_bombsUtil.CanPlaceBomb(newPosition)) return;
|
if (!_bombsUtil.CanPlaceBomb(newPosition)) return;
|
||||||
|
|
||||||
Instantiate(PrefabAtlas.PlayerBomb, newPosition, Quaternion.identity);
|
Instantiate(PrefabAtlas.Bomb, newPosition, Quaternion.identity);
|
||||||
_bombsUtil.RegisterBomb(newPosition);
|
_bombsUtil.RegisterBomb(newPosition);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue