public float SearchRangeClose; //When within this range, baby would attack even if being pulled by the cord, void Start() { MyStatue = transform.parent.GetComponent <EnemyStatue>(); MyStatue.MyBaby = this; transform.parent = null; MyJoint.connectedBody = MyStatue.RB; }
void Start() { MyStatue = transform.parent.GetComponent <EnemyStatue>(); }