示例#1
0
        /**
	     * 
	     */
        public virtual void OnCollect(Collector collector)
        {
            if (collector.hasItem(this))
            {
                return;
            }

            collector.items.Add(this);

            owner = collector;

            //this.gameObject.SetActive(false); // TODO: Find a way to remove the object instance from the game world while still allowing the item to be used.
        }