Ejemplo n.º 1
0
 public EntityPart(float damageCoeff, EntityPartType part, List <EntityPartType> connectedParts, EntitySize size, float progressiveDmgSpeed = 0)
 {
     this.damageCoeff         = damageCoeff;
     this.partType            = part;
     this.progressiveDmgSpeed = progressiveDmgSpeed;
     this.adjPartsType        = connectedParts;
     this.size = size;
 }
Ejemplo n.º 2
0
    //外部接口
    public GameObject getPartByType(EntityPartType type)
    {
        GameObject part = null;

        if (dictPart.ContainsKey(type))
        {
            part = dictPart[type].getPartObj();
        }
        return(part);
    }
Ejemplo n.º 3
0
 public virtual GameObject getPartObj(EntityPartType type)
 {
     return(this.partWidget.getPartByType(type));
 }