This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void turnAround(){ | |
| Vector3 targetAngles = gameObject.transform.eulerAngles + 180f * Vector3.up; | |
| gameObject.transform.eulerAngles = targetAngles; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Geek Honduras FAQ | |
| ¿Cual es el mejor proveedor de Internet? | |
| Depende de la zona. | |
| 1.Claro | |
| 2.Cable Color | |
| 3.Amnet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using System.Collections; | |
| public class CameraShake : MonoBehaviour { | |
| Camera cam; | |
| public float shakeTime=0.2f; | |
| float timeStop=0; | |
| float shakeAmount=0.3f; | |
| Vector3 originPosition; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| foreach (Touch touch in Input.touches) { | |
| if( touch.phase == TouchPhase.Ended ){ | |
| if(touch.tapCount == 1){ | |
| Debug.Log("Tap"); | |
| } | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [{ | |
| "category_name": "Birthday", | |
| "slug": "birthday" | |
| }, { | |
| "category_name": "Good Luck", | |
| "slug": "goodluck" | |
| }] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)viewDidLoad { | |
| //add this on your viewDidLoad | |
| UICollectionViewFlowLayout *flow = (UICollectionViewFlowLayout *)self.collectionViewLayout; | |
| flow.sectionHeadersPinToVisibleBounds = YES; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CGPoint currentOffset; | |
| //Save the initial scrollview offset when adding floating view on the UIScrollView | |
| currentOffset = scrollView.contentOffset; | |
| - (void) scrollViewDidScroll:(UIScrollView *)scrollView{ | |
| CGRect frame = self.floatingView.frame; | |
| frame.origin.x -= (currentOffset.x - scrollView.contentOffset.x); | |
| frame.origin.y -= (currentOffset.y - scrollView.contentOffset.y); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UIBarButtonItem *back = [[UIBarButtonItem alloc] initWithTitle:@"CustomText" UIBarButtonItemStylePlain target:self action:nil]; | |
| back.tintColor = [UIColor themeColor]; | |
| self.navigationController.navigationBar.topItem.backBarButtonItem = back; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -(void) downloadVideo:(NSString *) urlToDownload | |
| { | |
| dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ | |
| NSLog(@"Downloading Started"); | |
| NSURL *url = [NSURL URLWithString:urlToDownload]; | |
| NSData *urlData = [NSData dataWithContentsOfURL:url]; | |
| if ( urlData ) | |
| { | |
| NSString *outputURL = NSTemporaryDirectory(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Xcode | |
| # | |
| # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore | |
| ## Build generated | |
| build/ | |
| DerivedData/ | |
| ## Various settings | |
| *.pbxuser |