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 System; | |
using UnityEngine; | |
using UnityEngine.UI; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ScrollIndexCallback1 : MonoBehaviour | |
{ | |
private static readonly int MainTex = Shader.PropertyToID("_MainTex"); | |
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 System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using RSG; | |
using UnityEngine; | |
using UnityEngine.Assertions; | |
using System.IO; | |
using System.Runtime.InteropServices; | |
using Object = UnityEngine.Object; | |
using System.Text; |
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
[AOT.MonoPInvokeCallback(typeof(ExceptionDelegate))] | |
static void SetPendingApplicationException(string message) { | |
SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve())); | |
} |
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
public void RunBad() | |
{ | |
var sw = new Stopwatch(); | |
int ticks = 0; | |
while (true) | |
{ | |
sw.Restart(); |
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
#!/bin/bash | |
# LuaJIT 的源码路径 | |
LUAJIT=./LuaJIT-2.1.0-beta3 | |
XCODEPATH=`xcode-select -print-path` | |
DEVDIR=$XCODEPATH/Platforms | |
IOSVER=iPhoneOS.sdk | |
SIMVER=iPhoneSimulator.sdk |
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 ProfilerTester : MonoBehaviour | |
{ | |
void Update() | |
{ | |
Profiler.BeginSample("AAATest"); | |
float sum = ExpensiveOperation(); |