Guest User

InputSelect

a guest
Sep 23rd, 2016
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.30 KB | None | 0 0
  1. void Awake()
  2. {
  3.     UICamera.onSelect = OnCameraSelect;
  4. }
  5.  
  6. void OnCameraSelect(GameObject go, bool state)
  7. {
  8.     //Detect if the click was on the chat panel
  9.     if(go.tag != Tags.CHAT)
  10.     {
  11.         //Deselect chat
  12.         mChatToolsPanel.alpha = 0.0f;
  13.     }
  14.     else
  15.     {
  16.         //select chat
  17.         mChatToolsPanel.alpha = 1.0f;
  18.     }
  19. }
Add Comment
Please, Sign In to add comment