public override void CheckIn() { if (Vector3.Distance(DetectObject.localPosition, SensorPosition) <= distance) { button.SetInfo(in_signal, true); } else { button.SetInfo(in_signal, false); } }
void OnCollisionEnter(Collision collisionInfo) { if (collisionInfo.transform.tag == SensorTag) { GSKDATA.SensorSignal[SensorSignal] = true; //Debug.Log("SensorSignal:"+SensorSignal); if (feedback) { button.SetInfo(SensorSignal, true); } } else { GSKDATA.IsCollide = true; } }