void Start() { _playerCount = _instance.PlayerCount; _initializer = GameObject.FindWithTag("GameController").GetComponent<Initializer>(); _arrayBlue = _initializer.GetArrayBlue; _arrayRed = _initializer.GetArrayRed; _arrayGreen = _initializer.GetArrayGreen; _arrayYellow = _initializer.GetArrayYellow; _rayObj = _initializer.GetRayObj; _arrLenght = _arrayBlue.Length; _orderArray = new string[_arrLenght]; _parent = Camera.main.transform; SwitchSides(); }
void Start() { _inputManager = GameObject.FindWithTag("GameController").GetComponent<InputManager>(); _initializer = GameObject.FindWithTag("GameController").GetComponent<Initializer>(); }
void Start() { //playerCount = instance.PlayerCount; initializer = GameObject.FindWithTag("GameController").GetComponent<Initializer>(); arrayBlue = initializer.getArrayBlue; arrayRed = initializer.getArrayRed; arrayGreen = initializer.getArrayGreen; arrayYellow = initializer.getArrayYellow; rayObj = initializer.getRayObj; arrLenght = arrayBlue.Length; orderArray = new string[arrLenght]; SwitchSides(); }