Ejemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     arrows = new RadarArrow[maxSight];
     for (int a = 0; a < maxSight; ++a)
     {
         RadarArrow arrow = GameElement.Instantiate <RadarArrow>(ArrowPrefab);
         arrows[a] = arrow;
         arrow.transform.parent        = this.transform;
         arrow.transform.localPosition = Vector3.zero;
     }
     colliderSize = sense.GetComponent <SphereCollider>().radius;
 }