slimecing

a fighting game featuring slimes and swords
Log | Files | Refs | README

CheckPlayerCollisionExtensionMethod.cs (325B)


      1 using Slimecing.Characters;
      2 using UnityEngine;
      3 
      4 namespace Slimecing.TestScripts
      5 {
      6     public static class CheckPlayerCollisionExtensionMethod
      7     {
      8         public static bool ColIsPlayer(this Collision col)
      9         {
     10             return col.gameObject.GetComponent<CharacterMovementController>() != null;
     11         }
     12     }
     13 }