// Use this for initialization void Start() { for (int i = 0; i < characterCyclers.Length; ++i) { PlayerInputDevice playerInputDevice = characterCyclers[i].GetComponent <PlayerInputDevice>(); playerInputDevice.SetPlayerID(i); } }
void Start() { PlayerInputDevice playerInputDevice = GetComponent <PlayerInputDevice>(); playerInputDevice.SetPlayerID(deviceId); inputDevice = playerInputDevice.GetPlayerInputDevice(); meshRenderer = GetComponent <MeshRenderer>(); pMarkersGroupController = GetComponentInParent <PMarkersGroupController>(); }