public bool CanBeHit(AttackUnit aut) { bool hasInSuper = _owner.HasActionSwitchFlag(FC_ACTION_SWITCH_FLAG.IN_SUPER_SAIYAJIN); bool hasInSuper2 = _owner.HasActionSwitchFlag(FC_ACTION_SWITCH_FLAG.IN_SUPER_SAIYAJIN2); bool hasInGod = _owner.HasActionSwitchFlag(FC_ACTION_SWITCH_FLAG.IN_GOD); if (_owner.ACOwner.IsAlived && !hasInSuper && !hasInSuper2 && !hasInGod) { aut.GetHurtDirection(_owner.ACOwner.ThisTransform, ref _hitDirection); //Debug.Log("GetHurtDirection = " + _hitDirection); return(true); } else { if (_owner.ACOwner._onHit != null) { _owner.ACOwner._onHit((int)LevelManager.VarNeedCount.ATTACK_IGNORE); } } Debug.Log(string.Format("InSuper = {0}, InSuper2 = {1}, InGod = {2}", hasInSuper, hasInSuper2, hasInGod)); return(false); }