示例#1
0
 private void Update()
 {
     if (PrimaryBankAccount == null && BankAccounts.Count() > 0)
     {
         BankAccounts.First();
     }
 }
示例#2
0
 private void Start()
 {
     if (BankAccounts.Count() > 0)
     {
         PrimaryBankAccount = BankAccounts.First();
     }
     else
     {
         PrimaryBankAccount =
             The.DefaultBank.OpenBankAccount(this);
     }
 }