Exemple #1
0
        public static ObjectCollided Get(StaticObjectBehaviour sObj)
        {
            if (_Instance == null)
            {
                _Instance = new ObjectCollided();
            }

            _Instance.CollidingObject = sObj;

            return(_Instance);
        }
Exemple #2
0
 public static void OnObjectCollided(ICollidable arg1, ICollidable arg2)
 {
     ObjectCollided?.Invoke(arg1, arg2);
 }