void CheckIfActivationIsValid() { if (isOtherRobotInRange) { if (Input.GetKeyDown(KeyCode.Space)) { if (otherRobotInRange != null) { otherRobotInRange.Activate(this); } } } }