예제 #1
0
    public void DropBoxWhenSelected()
    {
        Debug.Log("Drop");
        Invoke("DropBox", removeTimer);
        LootboxAnchorController ac = FindObjectOfType <LootboxAnchorController>();

        ac.transform.position = transform.position;
        transform.SetParent(FindObjectOfType <LootBoxAnchorTarget>().transform, true);
    }
예제 #2
0
 private void DropBox()
 {
     LootboxAnchorController ac = FindObjectOfType <LootboxAnchorController>();
     var rb = ac.gameObject.AddComponent <Rigidbody>();
     //rb.AddTorque(dropTorque);
 }