Beispiel #1
0
        internal TargetBox create(Target item, Transform tsf)
        {
            TargetBox box = GameObject.Instantiate(this, tsf);

            box.setup(item);
            return(box);
        }
Beispiel #2
0
        public void open(TargetBox tb)
        {
            _content = tb.target.content;

            _window.setContent(_content);
            _window.open();
        }
Beispiel #3
0
 public void open()
 {
     Target[] list = _targetPoint.targets;
     list_ = new List <Target>(list);
     foreach (Target item in list_)
     {
         if (item.content != null)
         {
             TargetBox box = _boxPhototype.create(item, this.transform);
         }
     }
     bodys_ = new List <TargetBody>(_targetPoint.bodyTargets);
     foreach (TargetBody body in bodys_)
     {
         if (body.content != null)
         {
             Debug.LogError(body.name);
             var content = GameObject.Instantiate(body.content, this.transform);
             content.transform.SetParent(this.transform);
             content.transform.localPosition = Vector3.zero;
             content.transform.localRotation = Quaternion.identity;
             //  content.transform.
             content.gameObject.SetActive(true);
             // TargetBox box = _boxPhototype.create(item, this.transform);
         }
     }
 }