private void Awake() { if (!_instance) { _instance = this; } _rigid = GetComponent <Rigidbody2D>(); }
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); }