mirror of
https://github.com/OMGeeky/GameDevGameJamV2.git
synced 2025-12-30 08:13:41 +01:00
Movement & Attaching etc.
also cleanup
This commit is contained in:
@@ -1,7 +1,3 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
@@ -9,9 +5,9 @@ public class DissolveCollidersExceptPlayer : MonoBehaviour
|
||||
{
|
||||
private void OnTriggerEnter2D( Collider2D col )
|
||||
{
|
||||
if ( !col.TryGetComponent( out Character character ) )
|
||||
if ( !col.TryGetComponent( out Character character ) )
|
||||
return;
|
||||
|
||||
|
||||
if ( character.isActivePlayer )
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user