public override void OnMouseOver() { CFontRenderer sub = GetSubtitleFont(); if (!sub.isEnabled()) { sub.setEnabled(true); sub.mText = "Click to Interact"; } switch (currEvent) { case CONSOLE_EVENT.DOOR_MINIGAME_TURN: { CFontRenderer fontOfInput = mExtraTexts[1].GetComponent <CFontRenderer>(); fontOfInput.mColor = mColorOfText; // Change to green when mouse-overed } break; case CONSOLE_EVENT.MINIGAME_FOUR_PLAYERS: { CFontRenderer fontOfInput = mExtraTexts[1].GetComponent <CFontRenderer>(); fontOfInput.mColor = mColorOfText; // Change to green when mouse-overed } break; } }
public override void OnMouseOver() { CFontRenderer sub = GetSubtitleFont(); if (!sub.isEnabled()) { sub.setEnabled(true); sub.mText = "Click Drag to Look Around"; } }
public override void OnMouseOver() { CFontRenderer sub = GetSubtitleFont(); if (!sub.isEnabled()) { sub.setEnabled(true); sub.mText = "Spin!"; } }
public override void OnMouseOver() { if (foundCar) { CFontRenderer sub = GetSubtitleFont(); if (!sub.isEnabled()) { sub.setEnabled(true); sub.mText = "Click Drag to Move RC Car"; } } }
public override void OnMouseOver() { if (isActive) { camInMapSelector.setEnabled(true); Vector3 camDir = ocuCam.transform.GetForwardVector(); // Move it infront of the camInMap Icon camInMapSelector.gameObject.transform.SetPosition( (Vector3)camInMapIcon.transform.position - camDir * 0.001f); CFontRenderer sub = GetSubtitleFont(); if (!sub.isEnabled()) { sub.setEnabled(true); sub.mText = "Click to Switch Camera"; } } }