public HitBoxTransformProvider GetProvider(GameObject o)
        {
            var id = o.GetInstanceID();

            if (!_providers.ContainsKey(id))
            {
                _providers[id] = new HitBoxTransformProvider(o);
            }
            return(_providers[id]);
        }
예제 #2
0
        public HitBoxTransformProvider GetProvider(GameObject o)
        {
            var id = o.GetInstanceID();

            if (_providers.ContainsKey(id))
            {
                return(_providers[id]);
            }
            else
            {
                var p = new HitBoxTransformProvider(o);
                _providers[id] = p;
                return(p);
            }
        }