Exemple #1
0
    public override IEnumerator Action()
    {
        ItemPack pack = ItemPack.GetPack();

        if (pack.isOn("有电的遥控器"))
        {
            pack.TakeAway("有电的遥控器");
            screen.SetActive(true);
        }
        yield return(null);
    }
Exemple #2
0
    public void TryPut()
    {
        ItemPack pack = ItemPack.GetPack();

        for (int i = 0; i < this._putableItem.Length; i++)
        {
            string item = this._putableItem[i];
            if (!pack.isOn(item))
            {
                continue;
            }
            pack.TakeAway(item);
            this.Put(this._targetProp[i], this._putPos[i]);
            break;
        }
    }