public void SetThirdPersonCharacter(GameObject obj) { WeaponControllerBaseImpl.SetThirdPersonCharacter(obj); WardrobeControllerBaseImpl.SetThirdPersonCharacter(obj); PropControllerBaseImpl.SetThirdPersonCharacter(obj); _characterP3 = obj; _hitboxHandler = obj.GetComponent <HitBoxCache>(); }
public HitBoxTransformProvider(GameObject currentGameObject) { _currentGameObject = currentGameObject; _handler = currentGameObject.GetComponent <HitBoxCache>(); if (_handler == null) { _handler = currentGameObject.AddComponent <HitBoxCache>(); } _handler.Init(); }
public void SetThirdPersonCharacter(GameObject obj) { _characterP3 = obj; _hitBoxHandler = obj.GetComponent <HitBoxCache>(); if (null == _characterP3) { return; } _ragDollList.Clear(); _characterP3.GetComponentsInChildren(_ragDollList); _ragDollColliderList.Clear(); _characterP3.GetComponentsInChildren(_ragDollColliderList); }