예제 #1
0
    public void HeavyAttackChain()
    {
        if (previousAttackLight)
        {
            chainAttackTimer = 0;
        }

        previousAttackLight = false;
        ChainUI.AddHeavy();
        numberOfChainAttacks = 0;
    }
예제 #2
0
 private void Update()
 {
     if (chainAttackTimer < chainAttackResetsIn)
     {
         chainAttackTimer += Time.deltaTime;
     }
     else
     {
         numberOfChainAttacks = 0;
         ChainUI.SetChainNumber(numberOfChainAttacks);
     }
 }
예제 #3
0
    public void LightAttackChain()
    {
        if (numberOfChainAttacks >= 3)
        {
            numberOfChainAttacks = 0;
        }

        previousAttackLight = true;
        chainAttackTimer    = 0;
        numberOfChainAttacks++;
        ChainUI.SetChainNumber(numberOfChainAttacks);
    }
예제 #4
0
    // Use this for initialization
    void Start()
    {
        instance    = this;
        canvasGroup = GetComponent <CanvasGroup>();
        chainOne    = this.FindContainsInChildren("ChainOne");
        chainTwo    = this.FindContainsInChildren("ChainTwo");
        chainThree  = this.FindContainsInChildren("ChainThree");
        chainFinish = this.FindContainsInChildren("ChainFinish");

        chainOne.SetActive(false);
        chainTwo.SetActive(false);
        chainThree.SetActive(false);
        chainFinish.SetActive(false);
    }
예제 #5
0
 public void Miss()
 {
     chainAttackTimer     = float.PositiveInfinity;
     numberOfChainAttacks = 0;
     ChainUI.SetChainNumber(numberOfChainAttacks);
 }