예제 #1
0
 // Use this for initialization
 void Start()
 {
     PlayerAmmo  = FindObjectOfType <Ammunition>();
     interaction = FindObjectOfType <InteractionUni>();
     ammoAmount  = Random.Range(1, 3);
     dialog      = FindObjectOfType <DialogText>();
     control     = FindObjectOfType <BinController>();
 }
예제 #2
0
 private void Awake()
 {
     if (instance == null)
     {
         instance = this;
         //DontDestroyOnLoad(gameObject);
     }
 }
예제 #3
0
파일: UcBin.cs 프로젝트: 0000duck/MES-3
 private void btnOK_Click(object sender, EventArgs e)
 {
     try
     {
         if (string.IsNullOrEmpty(txtBinCode.Text))
         {
             throw new Exception("请输入器具编号!");
         }
         BinM  = BinController.GetBinM(txtBinCode.Text);
         BinDs = BinController.GetBinDs(txtBinCode.Text);
         if (BtnClick != null)
         {
             BtnClick(sender, e);
         }
     }
     catch (Exception ex)
     {
         BLMUtils.ShowError(ex.Message);
     }
 }