public GatherAbility(Character character, GatherAbilityArgs abilityArgs) { this.Character = character; this.AbilityArgs = abilityArgs; Input = Character.GetInput(); _collider = Character.Representation.GetComponent <Collider2D>(); }
public MoveAbility(Character character, MoveAbilityArgs abilityArgs) { this.Character = character; this.AbilityArgs = abilityArgs; Input = Character.GetInput(); _rigidBody = Character.Representation.GetComponent <Rigidbody2D>(); }
public PossessionAbility(Character character, PossessionAbilityArgs abilityArgs = null) { this.Character = character; this.AbilityArgs = abilityArgs; Input = Character.GetInput(); _rigidBody = Character.Representation.GetComponent <Rigidbody2D>(); }
public JumpAbility(Character character, JumpAbilityArgs abilityArgs) { this.Character = character; this.AbilityArgs = abilityArgs; Input = Character.GetInput(); _rigidBody = Character.Representation.GetComponent <Rigidbody2D>(); _boxCollider2D = Character.Representation.GetComponent <BoxCollider2D>(); _transform = Character.Representation.GetComponent <Transform>(); }