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
protected function works():void{ | |
var val:Number = -3; | |
switch(val){ | |
case -3: | |
trace("woohoo"); | |
break; | |
default: | |
trace('wtf!'); | |
break; | |
} |
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
var val = -3; | |
switch(val){ | |
case -3: | |
console.log("woohoo"); | |
break; | |
default: | |
console.log("wtf!"); | |
break; | |
} |
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
animation name="knight"> | |
<mov name="stand" dr="1" to="6"> | |
<b name="[knight__0019_shield.png]" sc="1" dl="0"> | |
<f x="125" y="125" kX="0" kY="0" cX="1" cY="1" z="0" dI="0" dr="1"/> | |
</b> | |
<b name="[knight__0018_shoulder-L.png]" sc="1" dl="0"> | |
<f x="125" y="125" kX="0" kY="0" cX="1" cY="1" z="1" dI="0" dr="1"/> | |
</b> | |
<b name="[knight__0017_wrist-L.png]" sc="1" dl="0"> | |
<f x="125" y="125" kX="0" kY="0" cX="1" cY="1" z="2" dI="0" dr="1"/> |
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
<mov name="stand" dr="1" to="6"> | |
<b name="[knight__0019_shield.png]" sc="1" dl="0"> | |
<f x="125" y="125" kX="0" kY="0" cX="1" cY="1" z="0" dI="0" dr="1"/> | |
</b> | |
<b name="[knight__0018_shoulder-L.png]" sc="1" dl="0"> | |
<f x="125" y="125" kX="0" kY="0" cX="1" cY="1" z="1" dI="0" dr="1"/> | |
</b> | |
<b name="[knight__0017_wrist-L.png]" sc="1" dl="0"> | |
<f x="125" y="125" kX="0" kY="0" cX="1" cY="1" z="2" dI="0" dr="1"/> | |
</b> |
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
package | |
{ | |
import com.adobe.images.PNGEncoder; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.Loader; |
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
// C# example | |
using UnityEditor; | |
using System.IO; | |
using System.Collections; | |
using UnityEngine; | |
using System.Collections.Generic; | |
class PerformBuild | |
{ | |
static string[] GetBuildScenes() |
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.Generic; | |
using System.Linq; | |
using System.Text; | |
#if UNITY_ANDROID | |
public class AndroidFacebookManager : IFacebookManager | |
{ |
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.Generic; | |
using System.Linq; | |
using System.Reflection; | |
using System.Text; | |
using UnityEngine; | |
public class BaseComponent : MonoBehaviour | |
{ |
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; | |
using System.Collections.Generic; | |
using Spine; | |
/// <summary> | |
/// A Unity specific implementation of a skeleton controller. | |
/// </summary> | |
public class SkeletonController : MonoBehaviour | |
{ |