コード例 #1
0
 private void Update()
 {
     if (chainAttackTimer < chainAttackResetsIn)
     {
         chainAttackTimer += Time.deltaTime;
     }
     else
     {
         numberOfChainAttacks = 0;
         ChainUI.SetChainNumber(numberOfChainAttacks);
     }
 }
コード例 #2
0
    public void LightAttackChain()
    {
        if (numberOfChainAttacks >= 3)
        {
            numberOfChainAttacks = 0;
        }

        previousAttackLight = true;
        chainAttackTimer    = 0;
        numberOfChainAttacks++;
        ChainUI.SetChainNumber(numberOfChainAttacks);
    }
コード例 #3
0
 public void Miss()
 {
     chainAttackTimer     = float.PositiveInfinity;
     numberOfChainAttacks = 0;
     ChainUI.SetChainNumber(numberOfChainAttacks);
 }