public override void Exit() { base.Exit(); if (infoPanel) { infoPanel.Show(false); } if (continueButton) { continueButton.Show(false); } }
public virtual void OnPointerExit() { pointerWithin = false; if (rolloverPrompt) { rolloverPrompt.SetActive(false); } if (sharedInfo) { sharedInfo.Show(false); } textReceiver?.ReceiveRolloverText(null); rolloffAction?.Invoke(this); }
public override void Enter(ActivityBase a, StateProcessor previousState) { base.Enter(a, previousState); ControllerInput.Instance.PointerMode = ControllerInput.EnPointerMode.Pointing; foreach (var p in placeables) { p.CallOnDrop = OnPlaceableDrop; if (!addedItems.ContainsKey(p.name)) { addedItems[p.name] = 0; } } foreach (var r in pourables) { r.CallOnDrop = OnPourDrop; r.Pouring = OnPouring; r.CallOnEnter = OnEnterZone; r.CallOnExit = OnExitZone; r.PouringComplete = OnFinishedPouring; } foreach (var s in sliceables) { s.CallOnDrop = OnSliceableDrop; } addSlicesButton.Show(false); addSlicesButton.clickUpAction = AddSlices; infoPanel.Show(false); dropInfo.Show(false); controlKnob.Show(false); Utils.OptSkipButton("Skip salad preparation", continueButton); ControllerInput.Instance.LockPlayer(false); chefEvaluation.SetActive(false); chefExpression.Init(); chefExpression.Neutral(); }