コード例 #1
0
 public void SetThirdPersonCharacter(GameObject obj)
 {
     WeaponControllerBaseImpl.SetThirdPersonCharacter(obj);
     WardrobeControllerBaseImpl.SetThirdPersonCharacter(obj);
     PropControllerBaseImpl.SetThirdPersonCharacter(obj);
     _characterP3   = obj;
     _hitboxHandler = obj.GetComponent <HitBoxCache>();
 }
コード例 #2
0
 public HitBoxTransformProvider(GameObject currentGameObject)
 {
     _currentGameObject = currentGameObject;
     _handler           = currentGameObject.GetComponent <HitBoxCache>();
     if (_handler == null)
     {
         _handler = currentGameObject.AddComponent <HitBoxCache>();
     }
     _handler.Init();
 }
コード例 #3
0
        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);
        }