Example #1
0
 public void anticipationScatterBegin(SlotScatterHitData hit)
 {
     if (OnAnticipationScatterBegin != null)
     {
         OnAnticipationScatterBegin(hit);
     }
 }
Example #2
0
 public void scatterSymbolHit(SlotScatterHitData hit)
 {
     if (OnScatterSymbolHit != null)
     {
         OnScatterSymbolHit(hit);
     }
 }
Example #3
0
    void inlineScatterCalc()
    {
        for (int currentSymbolSetIndex = 0; currentSymbolSetIndex < slot.symbolSets.Count; currentSymbolSetIndex++)
        {
            SetsWrapper currentSet = slot.symbolSets[currentSymbolSetIndex];
            if (currentSet.typeofSet != SetsType.scatter)
            {
                continue;
            }
            int matches            = 0;
            SlotScatterHitData hit = new SlotScatterHitData(reelIndex);

            foreach (int symbol in currentSet.symbols)
            {
                for (int i = slot.reelIndent; i < (slot.reelHeight - slot.reelIndent); i++)
                {
                    int reelSymbolIndex = symbols[i].GetComponent <SlotSymbol>().symbolIndex;
                    if (reelSymbolIndex == symbol)
                    {
                        currentSet.scatterCount++;
                        matches++;
                        hit.hits     = currentSet.scatterCount;
                        hit.setIndex = currentSymbolSetIndex;
                        hit.setType  = SetsType.scatter;
                        hit.setName  = slot.symbolSetNames[hit.setIndex];
                        hit.symbol   = symbols[i];
                        slot.scatterSymbolHit(hit);
                    }
                }
            }
            // anticipation
            if (currentSet.scatterCount > 0)
            {
                if ((currentSet.scatterCount < slot.numberOfReels) && (reelIndex < slot.numberOfReels))
                {
                    if ((slot.setPays[currentSymbolSetIndex].anticipate[currentSet.scatterCount - 1]) == true)
                    {
                        for (int i = reelIndex; i < slot.numberOfReels; i++)
                        {
                            slot.reels[i].symbolsSpinRemaining += 10;
                            slot.anticipationScatterBegin(hit);
                        }
                    }
                }
            }
        }
    }
Example #4
0
    void inlineScatterCalc()
    {
        for(int currentSymbolSetIndex = 0; currentSymbolSetIndex < slot.symbolSets.Count; currentSymbolSetIndex++)
        {

            SetsWrapper currentSet = slot.symbolSets[currentSymbolSetIndex];
            if (currentSet.typeofSet != SetsType.scatter) continue;
            int matches = 0;
            SlotScatterHitData hit = new SlotScatterHitData(reelIndex);

            foreach(int symbol in currentSet.symbols)
            {
                for (int i = slot.reelIndent; i < (slot.reelHeight - slot.reelIndent); i++)
                {
                    int reelSymbolIndex = symbols[i].GetComponent<SlotSymbol>().symbolIndex;
                    if (reelSymbolIndex == symbol)
                    {
                        currentSet.scatterCount++;
                        matches++;
                        hit.hits = currentSet.scatterCount;
                        hit.setIndex = currentSymbolSetIndex;
                        hit.setType = SetsType.scatter;
                        hit.setName = slot.symbolSetNames[hit.setIndex];
                        hit.symbol = symbols[i];
                        slot.scatterSymbolHit(hit);
                    }
                }
            }
            // anticipation
            if (currentSet.scatterCount > 0)
            {
                if ((currentSet.scatterCount < slot.numberOfReels) && (reelIndex < slot.numberOfReels))
                {
                    if ((slot.setPays[currentSymbolSetIndex].anticipate[currentSet.scatterCount-1]) == true)
                    {
                        for (int i = reelIndex; i < slot.numberOfReels; i++)
                        {
                            slot.reels[i].symbolsSpinRemaining += 10;
                            slot.anticipationScatterBegin(hit);
                        }
                    }
                }
            }
        }
    }
Example #5
0
 private void OnAnticipationScatterBegin(SlotScatterHitData hit)
 {
     slot.log("OnAnticipationScatterBegin Callback");
 }
Example #6
0
 private void OnScatterSymbolHit(SlotScatterHitData hit)
 {
     slot.log("OnScatterSymbolHit Callback");
     hit.symbol.transform.eulerAngles = new Vector2(0, 0);
 }
Example #7
0
 public void scatterSymbolHit(SlotScatterHitData hit)
 {
     if (OnScatterSymbolHit != null)
         OnScatterSymbolHit(hit);
 }
Example #8
0
 public void anticipationScatterBegin(SlotScatterHitData hit)
 {
     if (OnAnticipationScatterBegin != null)
         OnAnticipationScatterBegin(hit);
 }
Example #9
0
 private void OnScatterSymbolHit(SlotScatterHitData hit)
 {
     slot.log ("OnScatterSymbolHit Callback");
     hit.symbol.transform.eulerAngles = new Vector2(0,0);
 }
Example #10
0
 private void OnAnticipationScatterBegin(SlotScatterHitData hit)
 {
     slot.log ("OnAnticipationScatterBegin Callback");
 }
Example #11
0
	private void OnScatterSymbolHit(SlotScatterHitData hit)
	{
		slot.log ("OnScatterSymbolHit Callback");
	}