Skip to content

Instantly share code, notes, and snippets.

View altunsercan's full-sized avatar

Sercan Altun altunsercan

  • Montreal, QC, Canada
View GitHub Profile
@altunsercan
altunsercan / BaseGameObjectContext.cs
Created November 28, 2020 21:07
Extenject: Custom Inspectors for GameObjectContexts
using System;
using System.Collections.Generic;
using System.Linq;
using Zenject;
public abstract class BaseGameObjectContext : GameObjectContext
{
protected override void RunInternal()
{
this.NormalInstallers = InstallNormalInstaller();
@altunsercan
altunsercan / ComponentWrapperTestFixture.cs
Last active August 2, 2020 23:17
Unity3d Wrapper Component Test Fixture
/*
MIT License
Copyright 2020 Sercan Altun (www.sercanaltun.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
Following gist is created for a blog post. If you want to read the details you can read the blog at:
http://sercanaltun.com/blog/fungus-game-input-dialog-writing-custom-commands
Following gist is created for a blog post. If you want to read the details you can read the blog at:
http://sercanaltun.com/blog/fungus-game-sound-music-setup
@altunsercan
altunsercan / Qubicle Constructor - Away Test
Created February 5, 2013 11:51
A simple qubicle constructor parser for as3 - Away3d
package
{
import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.controllers.HoverController;
import away3d.controllers.LookAtController;
import away3d.core.base.Geometry;
import away3d.debug.AwayStats;
import away3d.entities.Mesh;
@altunsercan
altunsercan / QBAwayTest.as
Created October 29, 2012 18:36
.QB file parser and Away3d implementation
package
{
import away3d.cameras.Camera3D;
import away3d.containers.Scene3D;
import away3d.containers.View3D;
import away3d.controllers.HoverController;
import away3d.controllers.LookAtController;
import away3d.core.base.Geometry;
import away3d.debug.AwayStats;
import away3d.entities.Mesh;