private void Awake() { l = GameObject.Find("S&L").GetComponent <L_>(); s = GameObject.Find("S&L").GetComponent <S_>(); me = GetComponent <Button>(); if (!l.loadMarblesID.Contains(IDCalibration)) { gameObject.SetActive(false); } }
void Awake() { l = GameObject.Find("S&L").GetComponent <L_>(); s = GameObject.Find("S&L").GetComponent <S_>(); money = int.Parse(Money.text); me = GetComponent <Button>(); foreach (var marbles in l.loadMarblesID) { if (marbles == IDCalibration) { me.interactable = false; } } }
public void Start() { if (instance == null) { instance = this; } //else if (instance != this) //{ // enabled = false; //} if (S_L.isOpen) { 善良(); } }
void Start() { l = GameObject.Find("S&L").GetComponent <L_>(); wait.SetActive(false); }
private void Start() { isOpen = true; s = GameObject.Find("S&L").GetComponent <S_>(); l = GameObject.Find("S&L").GetComponent <L_>(); }