/// <summary> /// /// </summary> void add(GameObject _obj) { AllowableDistanceStruct _struct = new AllowableDistanceStruct( _obj, false ); if(!reserchObject(_obj)) this.objectStruct.Add(_struct); }
/// <summary> /// Start this instance. /// </summary> void Start() { this.myTransform = this.transform; List<GameObject> _objects = AllowableDistanceManager.instance.allowableDistanceObjects; int count = _objects.Count; for(int i = 0; i < count; i++ ) { AllowableDistanceStruct _struct = new AllowableDistanceStruct( _objects[i], false ); if(!reserchObject(_objects[i])) this.objectStruct.Add(_struct); } }