fixed bomb

This commit is contained in:
dddushesss 2022-01-19 21:14:07 +03:00
parent 8e35a15691
commit 1b51bbbe0e
3 changed files with 2 additions and 4 deletions

View File

@ -1,9 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Units;
using UnityEditor.SearchService;
using UnityEngine;
using UnityEngine.SceneManagement;
using Object = UnityEngine.Object;
using Random = UnityEngine.Random;

View File

@ -24,7 +24,7 @@ namespace Items
{
var enemy = collision.gameObject.GetComponent<UnitView>();
if (enemy != null && enemy.Color == _unit.Color)
if (enemy != null && enemy.Color != _unit.Color)
{
var vfx = VFXController.Instance.PlayEffect(hit, transform.position, Quaternion.identity);

File diff suppressed because one or more lines are too long