コード例 #1
0
        public GatherAbility(Character character, GatherAbilityArgs abilityArgs)
        {
            this.Character   = character;
            this.AbilityArgs = abilityArgs;

            Input     = Character.GetInput();
            _collider = Character.Representation.GetComponent <Collider2D>();
        }
コード例 #2
0
        public MoveAbility(Character character, MoveAbilityArgs abilityArgs)
        {
            this.Character   = character;
            this.AbilityArgs = abilityArgs;

            Input      = Character.GetInput();
            _rigidBody = Character.Representation.GetComponent <Rigidbody2D>();
        }
コード例 #3
0
        public PossessionAbility(Character character, PossessionAbilityArgs abilityArgs = null)
        {
            this.Character   = character;
            this.AbilityArgs = abilityArgs;

            Input      = Character.GetInput();
            _rigidBody = Character.Representation.GetComponent <Rigidbody2D>();
        }
コード例 #4
0
        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>();
        }