void OnTriggerEnter(Collider col) { if (((Platform)col.gameObject.GetComponent(typeof(Platform))).IsActive) { myMover.Collide(col); } }