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
| // --- AutoWire --- | |
| // Service Locator pattern is inferior to DI, but that is what we are stuck with in Unity, so lets make our life easier | |
| // | |
| // Notes: | |
| // 1) any persistent state should be a component or belong to a component (no models, services in thin air) | |
| // | |
| public class Enemy : AutoWire | |
| { | |
| [Locate] |
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
| #if UNITY_4_6 | |
| // Import extisting border | |
| foreach(var existing in importer.spritesheet) | |
| if(existing.name==smd.name) | |
| smd.border = existing.border; | |
| #endif |
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 class BaseMediator<TView> : Mediator | |
| { | |
| [Inject] | |
| public TView View { get; set; } | |
| protected List<SignalBinding> signalBindings = new List<SignalBinding>(); | |
| override public void OnRegister() | |
| { | |
| } |
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 content.views.main; | |
| import base.BaseView; | |
| import content.views.common.DivView; | |
| import content.views.foreground.ForegroundView; | |
| import js.JQuery; | |
| import js.Lib; | |
| import js.Dom; | |
| import hsl.haxe.Signaler; | |
| import hsl.haxe.DirectSignaler; |
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 base; | |
| import js.Dom; | |
| import js.JQuery; | |
| import robothaxe.core.IViewContainer; | |
| /** | |
| * ... | |
| * @author | |
| */ |
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.google.analytics.GATracker; | |
| import flash.display.Sprite; | |
| import flash.display.Stage3D; | |
| import flash.display.StageAlign; | |
| import flash.display.StageScaleMode; | |
| import flash.display3D.Context3D; | |
| import flash.display3D.Context3DRenderMode; |
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
| class Main | |
| { | |
| static function main() | |
| { | |
| Firebug.redirectTraces(); | |
| Lib.current.stage.alpha = 0.5; | |
| Lib.current.stage.addEventListener(Event.RESIZE, onResize); | |
| } | |
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
| import nme.display.Sprite; | |
| import org.aswing.border.EmptyBorder; | |
| import org.aswing.FlowLayout; | |
| import org.aswing.Insets; | |
| import org.aswing.JButton; | |
| import org.aswing.JFrame; | |
| import org.aswing.JLabel; | |
| import org.aswing.JPanel; | |
| class Main extends Sprite |
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 threeUtils; | |
| import js.Lib; | |
| import three.Camera; | |
| import three.Matrix4; | |
| import three.Mesh; | |
| import three.MeshShaderMaterial; | |
| import three.PlaneGeometry; | |
| import three.Scene; | |
| import three.ShaderUtils; | |
| import three.Texture; |
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 flash.utils.Dictionary; | |
| public class SimpleDispatcher | |
| { | |
| protected var _listeners : Dictionary; | |
| public function SimpleDispatcher(useWeak:Boolean) | |
| { |