Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     m_virus  = UsbProgram.Program.NONE;
     m_Sprite = GetComponentInParent <PrefabSprites>();
     m_Canvas = GetComponentInChildren <Canvas>();
     m_Image  = GetComponentInChildren <UnityEngine.UI.Image>();
 }
Ejemplo n.º 2
0
 void Start()
 {
     counter      = 0;
     m_Prefab     = GetComponent <PrefabSprites>();
     m_SphereSize = 2;
     // deedDone = false;
     ts = gameObject.GetComponentsInChildren <Transform>();
     foreach (Transform Child in ts)
     {
         if (Child.gameObject.tag == "DartTarget")
         {
             t_target = Child;
             break;
         }
     }
     t = FindObjectsOfType <NewtonVR.NVRInteractable>();
 }