示例#1
0
 private void Awake()
 {
     if (!_instance)
     {
         _instance = this;
     }
     _rigid = GetComponent <Rigidbody2D>();
 }
示例#2
0
        protected override List <GameObject> GetInventory(SimDescription sim)
        {
            List <GameObject> list = new List <GameObject>();

            foreach (NectarBottle Nectar in Inventories.InventoryFindAll <NectarBottle>(sim))
            {
                if (!Nectar.CanBeSold())
                {
                    continue;
                }

                list.Add(Nectar);
            }

            return(list);
        }