Exemplo n.º 1
0
	void OnAssignBtn()
	{
		DelegateImageData imageData = AsDelegateImageManager.Instance.GetSelectDelegateImage();
		if( null == imageData)
			return;
		
		if( true == imageData.locked)
			return;
		
		AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
		
		if( 0 >= AsDelegateImageManager.Instance.SelectedImageID)
			return;
		
		body_CS_IMAGE_SET imageSet = new body_CS_IMAGE_SET( imageData.id);
		byte[] data = imageSet.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( data);
	}
Exemplo n.º 2
0
	void OnClearBtn()
	{
		AsSoundManager.Instance.PlaySound( "Sound/Interface/S6002_EFF_Button", Vector3.zero, false);
		
		if( 0 >= AsDelegateImageManager.Instance.AssignedImageID)
			return;
		
		body_CS_IMAGE_SET imageSet = new body_CS_IMAGE_SET(0);
		byte[] data = imageSet.ClassToPacketBytes();
		AsNetworkMessageHandler.Instance.Send( data);
	}