void Start() { getInstance = this; readByte = 0x00; arduino = Arduino.global; arduino.Setup(ConfigurePins); }
private void Awake() { arduinoInput = ArduinoInput.Instance; colorUntouched = sliders[0].fillRect.GetComponent<Image>().color; if (debugText != null) { debugText.text = ""; debugText.gameObject.SetActive(true); } }
public void Initialize(int index, int[] startValues, PlayerDisplay display) { Index = index; Display = display; values = (int[]) startValues.Clone(); gameManager = GameManager.Instance; buttons = new string[gameManager.FoodstuffCount]; for (var foodstuffIndex = 0; foodstuffIndex < buttons.Length; foodstuffIndex++) { buttons[foodstuffIndex] = string.Format("P{0}F{1}", index, foodstuffIndex); } ArduinoInput = FindObjectsOfType<ArduinoInput>().FirstOrDefault(input => input.PlayerIndex == Index); }
void Start() { //CreatureCreator.Instance. GenerateTimerCircles(); timeLeft = maxTime; inputArduino = ArduinoInput.Instance; OSCStuff = OSCPureDataConnection.Instance; InstantiateCreature(); isCreatuePresent = true; //PlaceLayers(frontIndex); }
void Awake() { getInstance = this; }