Example #1
0
    public IEnumerator AddItem()
    {
        yield return(new WaitForSeconds(1));

        allItem = GetComponentInParent <AllItems>();
        allItem.AddGameobject(gameObject);
    }