public InteractiveIndicatorController this[InteractiveMethod state] { get { int index = (int)state; return(indicatorArray[index]); } }
private void SetGOInteractMethod(KeyCode key) { if (isInFlythroughMode) { return; } interactMethod = keyCodeStateDict[key]; OnInteractMethodUpdated?.Invoke(interactMethod); }
private void OnInteractiveStateUpdated(InteractiveMethod state) { //old indicator currentIndicator?.RemoveChild(InteractiveGameObjectCollection.Instance.holdingInteractiveGo); currentIndicator?.AddChild(null); //new indicator currentIndicator = this[state]; currentIndicator.AddChild(InteractiveGameObjectCollection.Instance.holdingInteractiveGo); }