26 lines
655 B
C#
26 lines
655 B
C#
using System.Collections;
|
||
using System.Collections.Generic;
|
||
using UnityEngine;
|
||
|
||
public class Inici : MonoBehaviour
|
||
{
|
||
|
||
void Start()
|
||
{
|
||
var inComponent = GetComponent<In>();
|
||
|
||
// Кредиты работают всегда — независимо от режима ввода
|
||
GetComponent<CreditSystem>().Initialize();
|
||
|
||
// COM-порты открываются только при работе с физическими платами
|
||
if (inComponent.UsesCOM)
|
||
GetComponent<ComWrapper>().Initialize();
|
||
|
||
inComponent.Initialize();
|
||
GetComponent<PrizeSystem>().Initialize();
|
||
}
|
||
|
||
|
||
}
|
||
|