//private GameRules gameRules; void Awake() { uiRules = GameObject.FindGameObjectWithTag("UIManager").GetComponent <Manager_UI>().UIRules; //gameRules = GameObject.FindGameObjectWithTag("GameManager").GetComponent<Manager_Game>().GameRules; shieldOrigColor = shieldFill.color; }
void Awake() { uiRules = GameObject.FindGameObjectWithTag("UIManager").GetComponent <Manager_UI>().UIRules; gameRules = GameObject.FindGameObjectWithTag("GameManager").GetComponent <Manager_Game>().GameRules; maxStacks = gameRules.ABLY_superlaserDmgByStacks.Length - 2; markOrigColor = markIcons[0].color; }
//private GameRules gameRules; void Awake() { uiRules = GameObject.FindGameObjectWithTag("UIManager").GetComponent <Manager_UI>().UIRules; //gameRules = GameObject.FindGameObjectWithTag("GameManager").GetComponent<Manager_Game>().GameRules; }