Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Awake()
- {
- UICamera.onSelect = OnCameraSelect;
- }
- void OnCameraSelect(GameObject go, bool state)
- {
- //Detect if the click was on the chat panel
- if(go.tag != Tags.CHAT)
- {
- //Deselect chat
- mChatToolsPanel.alpha = 0.0f;
- }
- else
- {
- //select chat
- mChatToolsPanel.alpha = 1.0f;
- }
- }
Add Comment
Please, Sign In to add comment