public void MightEngageWithObjectContinued(Transform objectToEngage) { //if (objectBeingHeld.Exists) // return; if (objectToEngage is Transform && objectToEngage.CompareTag("Interact")) { objectBeingPointedAt.PopulateInfo(objectToEngage); SetInteractionIndicators(objectToEngage.GetComponent <PuzzleElement>().InteractionType); } else { objectBeingPointedAt.ClearInfo(); SetInteractionIndicators(ObjectInteractions.none); } /*if (objectToEngage != objectBeingPointedAt.m_Transform) * { * if (objectToEngage is Transform && objectToEngage.CompareTag("Interact")) * { * objectBeingPointedAt.PopulateInfo(objectToEngage); * SetInteractionIndicators(objectToEngage.GetComponent<PuzzleElement>().InteractionType); * } * else * { * objectBeingPointedAt.ClearInfo(); * SetInteractionIndicators(ObjectInteractions.none); * } * }*/ }