Skip to content

Instantly share code, notes, and snippets.

View valryon's full-sized avatar
🤘

Damien Mayance valryon

🤘
View GitHub Profile
@valryon
valryon / EncryptionHelper.cs
Last active December 14, 2015 22:39
I think I found an issue between Monotouch (iOS) and .NET 4. Using an encryption algorithm I have differents outputs due to a default value set in .NET and not in MonoTouch.
// This file is shared both with a MonoTouch iOS and ASP.NET MVC 3 + .NET 4 project.
// The result of Encrypt differs because of the default selected mode.
// See line 94 for information.
public static class EncryptionHelper
{
/// <summary>
/// Default key
/// </summary>
@valryon
valryon / .gitignore
Last active January 10, 2017 14:24
Unity .gitignore
# =============== #
# Unity generated #
# =============== #
Temp/
Obj/
UnityGenerated/
/Library/
# ===================================== #
# Visual Studio / MonoDevelop generated #
@valryon
valryon / ScrollingScript.cs
Last active November 8, 2021 02:17
Multi directionnal infinite scrolling script.This is related to the tutorial http://pixelnest.io/tutorials/2d-game-unity/parallax-scrolling/
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
/// <summary>
/// Parallax scrolling script that should be assigned to a layer
///
/// This is related to the tutorial http://pixelnest.io/tutorials/2d-game-unity/parallax-scrolling/
///
@valryon
valryon / CheatCode.cs
Created April 1, 2014 09:06
Unity cheat code handler
// Copyright © 2014 Pixelnest Studio
// This file is subject to the terms and conditions defined in
// file 'LICENSE.md', which is part of this source code package.
using UnityEngine;
namespace Pixelnest
{
/// <summary>
/// Trigger an event is a cheat code is recognized
/// </summary>
@valryon
valryon / Timer.cs
Last active August 17, 2021 07:44
Unity simple Timer with co-routine
// 2014 - Pixelnest Studio
using System;
using System.Collections;
using UnityEngine;
/// <summary>
/// Ready to use timers for coroutines
/// </summary>
/// <summary>
/// Ready to use timers for coroutines
@valryon
valryon / BulletMLPoolLink.cs
Created June 27, 2014 17:07
Integrate a pooling system with BulletML for Unity
@valryon
valryon / TouchTapControl.cs
Last active October 10, 2017 05:36
InControl Tap zone for touch controls
using UnityEngine;
namespace InControl
{
public class TouchTapControl : TouchControl
{
[Header("Dimensions")]
public Rect activeArea = new Rect(0.0f, 0.0f, 0.5f, 1.0f);
[Header("Options")]
@valryon
valryon / fusemapping.txt
Last active August 29, 2015 14:08
Fuse mapping for FaceShift
bs = BrowsD_L = Facial_Blends.BrowsIn_Left = 100
bs = BrowsD_R = Facial_Blends.BrowsIn_Right = 100
bs = BrowsU_C = Facial_Blends.BrowsOuterLower_Left = 100
bs = BrowsU_C = Facial_Blends.BrowsOuterLower_Right = 100
bs = BrowsU_L = Facial_Blends.BrowsUp_Left = 100
bs = BrowsU_R = Facial_Blends.BrowsUp_Right = 100
bs = CheekSquint_L = Facial_Blends.Squint_Left = 100
bs = CheekSquint_R = Facial_Blends.Squint_Right = 100
bs = EyeBlink_L = Facial_Blends.Blink_Left = 100
bs = EyeBlink_R = Facial_Blends.Blink_Right = 100
@valryon
valryon / Interpolators.cs
Last active October 10, 2017 05:36
Interpolators coroutine for Unity!
// 2015 - Pixelnest STudio
// <summary>
/// Coroutine helpers for interpolateors
/// </summary>
public class Interpolators
{
public readonly static AnimationCurve LinearCurve;
public readonly static AnimationCurve EaseOutCurve;
public readonly static AnimationCurve EaseInCurve;
public readonly static AnimationCurve EaseInOutCurve;
@valryon
valryon / Bezier.cs
Created September 23, 2015 15:08
Bezier curves in Unity
/// <summary>
/// Easy and simple Bezier curves for Unity
/// </summary>
/// <remarks>http://devmag.org.za/2011/04/05/bzier-curves-a-tutorial/ </remarks>
public static class Bezier
{
/// <summary>
///
/// </summary>
/// <param name="t">Time, between 0 and 1</param>