Пример #1
0
 void FixedUpdate()
 {
     // If player is in range for interaction & hasn't already been prompted...
     if (RayCheckUpdate())
     {
         interactionHandler.setType(interactionType);
         interactionHandler.setObjectName(gameObject.name);
         interactionHandler.setState(true);
         interactionIcon.localScale = new Vector3(1, 1);
     }
     else
     {
         interactionHandler.setState(false);
         interactionIcon.localScale = new Vector3(0, 0);
     }
 }