//talk1 talk_ref = null;
 void Start()
 {
     inventorySpawnnerScript = GameObject.Find("FashionPolice").GetComponent<InventorySpawnner>();
     talk1Script = GameObject.Find(inventorySpawnnerScript.modelCollider.name).GetComponent<talk1>();
     //talk1 = GameObject.Find)(
 }
示例#2
0
 void Start()
 {
     talk1Script = GetComponentInParent<talk1>();
 }