This file contains 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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class EventCallPerformanceTest : MonoBehaviour { | |
private System.Diagnostics.Stopwatch _stopwatch; | |
void Start () { | |
This file contains 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
if (_audioSource.timeSamples >= _audioSource.clip.samples - 1) { | |
StopPlayingAndFinish(); | |
} |
This file contains 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
Shader "Name" { | |
Properties { | |
_Name ("display name", Range (min, max)) = number | |
_Name ("display name", Float) = number | |
_Name ("display name", Int) = number | |
_Name ("display name", Color) = (number,number,number,number) | |
_Name ("display name", Vector) = (number,number,number,number) |
This file contains 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; | |
using System.Collections.Generic; | |
using UnityEditor; | |
using System.Linq; | |
using System.Reflection; | |
using UnityEngine.SceneManagement; | |
public class CheckNullReferences { |
This file contains 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
@protocol RatingViewControllerDelegate <NSObject> | |
- (void)ratingViewControllerDidFinishWithOk:(RatingViewController*)ratingViewController selectedRow:(NSInteger)selectedRowIndex; | |
- (void)ratingViewControllerDidCancel:(RatingViewController*)ratingViewController; | |
@end |
This file contains 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
Shader "Name" { | |
Properties { | |
name ("display name", Range (min, max)) = number | |
name ("display name", Float) = number | |
name ("display name", Int) = number | |
name ("display name", Color) = (number,number,number,number) | |
name ("display name", Vector) = (number,number,number,number) |
This file contains 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
Shader "Example/Decal" { | |
Properties { | |
_MainTex ("Base (RGB)", 2D) = "white" {} | |
} | |
SubShader { | |
Tags { "RenderType"="Opaque" "Queue"="Geometry+1" "ForceNoShadowCasting"="True" } | |
LOD 200 | |
Offset -1, -1 | |
CGPROGRAM |
This file contains 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
if ([tutorialID isEqualToString:@"t1"]) { | |
TutorialElement *b1 = [TutorialElement elementWithName:kBoardTutElement params:nil]; | |
b1.params = @{ | |
@"blocks2" : @[[NSValue valueWithBoardPos:boardPosMake(1, 3)]], | |
@"destinations2" : @[[NSValue valueWithBoardPos:boardPosMake(5, 3)]] | |
}; | |
return @[ | |
TEXT_TE(boardPosMake(3, 3), 180.0f, NSLS(@"Welcome player!", @"")), |
This file contains 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)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { | |
TestViewController *viewController = [[TestViewController alloc] init]; | |
[self presentViewController:viewController animated:YES completion:nil]; | |
} |