private void OnTriggerEnter2D(Collider2D collision) { CharacterMovement sp = collision.GetComponent <CharacterMovement>(); if (sp != null) { //Player activates this trap, shoot sparkes than fire Spark.Ativated(); FireTrap.Ativated(); } }