Ejemplo n.º 1
0
    bool HitGameObj(InGameBaseObj baseobj)
    {
        if (baseobj.instanceId == this.instanceId)
        {
            return(false);
        }
        if (baseobj.GetObjType() != enObjType.character)
        {
            return(false);
        }
        if (!source.IsEnemy(baseobj))
        {
            return(false);
        }

        InGameBaseCharacter character = (InGameBaseCharacter)baseobj;


        character.Hurt(source,
                       source.GetAtkForce(),
                       source.propertys.GetProperty(enCharacterProperty.comborate),
                       source.propertys.GetProperty(enCharacterProperty.comboval),
                       false);
        Debug.Log(baseobj.gameObject.name);
        SetDie(true);

        return(true);
    }