public HitBoxTransformProvider GetProvider(GameObject o) { var id = o.GetInstanceID(); if (!_providers.ContainsKey(id)) { _providers[id] = new HitBoxTransformProvider(o); } return(_providers[id]); }
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); } }