public virtual void Initialize(GameObject owner, Transform directionOwner, BoxShapes shape, HitInfo hitInfo, List <IHurtable> ignoreList = null) { this.owner = owner; this.directionOwner = directionOwner; this.ignoreList = ignoreList; }
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; } }
public virtual void DrawInspector() { #if UNITY_EDITOR shape = (BoxShapes)EditorGUILayout.EnumPopup("Shape", shape); #endif }
public abstract void Initialize(GameObject owner, Transform directionOwner, int team, BoxShapes shape, HitInfoBase hitInfo, BoxDefinitionBase boxDefinition, List <IHurtable> ignoreList = null);