// Start is called before the first frame update void Start() { itemActivatorObject = GameObject.Find("WorldGenerator"); activationScript = itemActivatorObject.GetComponent <ItemActivator>(); item = new ActivatorItem { item = this.gameObject, itemPos = transform.position }; StartCoroutine("AddToList"); }
public void deRegister(ActivatorItem item) { activatorItems.Remove(item); }
public void Register(ActivatorItem item) { activatorItems.Add(item); }