Exemplo n.º 1
0
 public InteractiveIndicatorController this[InteractiveMethod state]
 {
     get
     {
         int index = (int)state;
         return(indicatorArray[index]);
     }
 }
Exemplo n.º 2
0
 private void SetGOInteractMethod(KeyCode key)
 {
     if (isInFlythroughMode)
     {
         return;
     }
     interactMethod = keyCodeStateDict[key];
     OnInteractMethodUpdated?.Invoke(interactMethod);
 }
Exemplo n.º 3
0
    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);
    }