コード例 #1
0
        public override void Initialize(GameObject owner, Transform directionOwner, int team,
                                        BoxShapes shape, HitInfoBase hitInfo, BoxDefinitionBase boxDefinitionBase, List <IHurtable> ignoreList = null)
        {
            this.owner          = owner;
            this.directionOwner = directionOwner;
            this.ignoreList     = ignoreList;
            this.hitInfo        = hitInfo;

            BoxDefinition boxDefinition = (BoxDefinition)boxDefinitionBase;

            switch (shape)
            {
            case BoxShapes.Rectangle:
                CreateRectangle(boxDefinition.size);
                break;

            case BoxShapes.Circle:
                CreateCircle(boxDefinition.radius);
                break;

            case BoxShapes.Capsule:
                CreateCapsule(boxDefinition.radius, boxDefinition.height);
                break;
            }
        }
コード例 #2
0
 public BoxDefinitionBase(BoxDefinitionBase other)
 {
 }
コード例 #3
0
 public abstract void Initialize(GameObject owner, Transform directionOwner, int team,
                                 BoxShapes shape, HitInfoBase hitInfo, BoxDefinitionBase boxDefinition, List <IHurtable> ignoreList = null);