Пример #1
0
    public void Equip(Sino.CharacterStats.PlayerCharacter c)
    {
        character = c;

        blockAmount = new StatsModifier(BlockPercentAmount, modType, this);
        c.BlockAmount.AddModifier(blockAmount);
    }
Пример #2
0
 public void UnEquip(Sino.CharacterStats.PlayerCharacter c)
 {
     c.AttackSpeed.RemoveAllModifiersFromSource(this);
     c.DamageImpact.RemoveAllModifiersFromSource(this);
     c.AttackDsiatnce.RemoveAllModifiersFromSource(this);
     c.AttackSpeedAnimation.RemoveAllModifiersFromSource(this);
 }
 void Awake()
 {
     animator        = GetComponent <Animator>();
     playerMove      = GetComponent <PlayerMove>();
     playerMoveAgent = GetComponent <PlayerMoveAgent>();
     Character       = GetComponent <Sino.CharacterStats.PlayerCharacter>();
 }
Пример #4
0
 void Awake()
 {
     animator     = GetComponent <Animator>();
     navMeshAgent = GetComponent <NavMeshAgent>();
     playerAttack = GetComponent <PlayerAttack>();
     Character    = GetComponent <Sino.CharacterStats.PlayerCharacter>();
     targetPos    = transform.position;
 }
Пример #5
0
    public void Equip(Sino.CharacterStats.PlayerCharacter c)
    {
        character            = c;
        attackSpeed          = new StatsModifier(AttackSpeed, ModTypeSpeed, this);
        attackDistance       = new StatsModifier(AttackDistance, ModAttackDistance, this);
        attackSpeedAnimation = new StatsModifier(AttackSpeedAnimation, ModTypeSpeed, this);
        damage = new StatsModifier(Damage, ModTypeDamage, this);

        c.AttackSpeedAnimation.AddModifier(attackSpeedAnimation);
        c.AttackSpeed.AddModifier(attackSpeed);
        c.AttackDsiatnce.AddModifier(attackDistance);
        c.DamageImpact.AddModifier(damage);
    }
Пример #6
0
 public void Awake()
 {
     character = GetComponent <Sino.CharacterStats.PlayerCharacter>();
 }
Пример #7
0
 void Start()
 {
     character = GetComponent <Sino.CharacterStats.PlayerCharacter>();
 }
Пример #8
0
 public void UnEquip(Sino.CharacterStats.PlayerCharacter c)
 {
     c.BlockAmount.RemoveAllModifiersFromSource(this);
 }