void OnCollisionEnter(Collision col) { if (isactivated) { var changer = col.gameObject.GetComponent <ControlandColorChange>(); //Eger carptigimiz obje sphere degilse ve controlandchange scripti yoksa //hicbisey yapma if (changer == null || changer.isactivated) { return; } //Debug.Log(sphereid + " " + col.relativeVelocity); controller.changecurrent(changer.sphereid, Time.time); } }