blob: 7f82b5885b0d315695b3451670865324b9fd96bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
using System.Collections.Generic;
using UnityEngine;
public class PlayerAudioModifyers : MonoBehaviour
{
public List<AudioModifyer> modifyers = new List<AudioModifyer>();
public static List<CardAudioModifier> activeModifyer = new List<CardAudioModifier>();
public void AddToStack(CardAudioModifier mod)
{
int num = -1;
for (int i = 0; i < modifyers.Count; i++)
{
if (modifyers[i].modifier.stackName == mod.stackName)
{
num = i;
break;
}
}
if (num != -1)
{
modifyers[num].stacks++;
return;
}
AudioModifyer audioModifyer = new AudioModifyer();
audioModifyer.modifier = new CardAudioModifier();
audioModifyer.modifier.stackName = mod.stackName;
audioModifyer.modifier.stackType = mod.stackType;
audioModifyer.stacks = 1;
activeModifyer.Add(audioModifyer.modifier);
modifyers.Add(audioModifyer);
}
public void SetStacks()
{
for (int i = 0; i < activeModifyer.Count; i++)
{
_ = activeModifyer[i].stackType;
_ = 1;
_ = activeModifyer[i].stackType;
}
for (int j = 0; j < modifyers.Count; j++)
{
_ = modifyers[j].modifier.stackType;
_ = 1;
_ = modifyers[j].modifier.stackType;
}
}
}
|