コード例 #1
0
        // Use this for initialization
        void Awake()
        {
            combiner = new EquipmentCombiner(gameObject);

            for (int i = 0; i < equipment.Slots.Length; ++i)
            {
                equipment.Slots[i].OnPreUpdate  += OnRemoveItem;
                equipment.Slots[i].OnPostUpdate += OnEquipItem;
            }
        }