Skip to content

Instantly share code, notes, and snippets.

View fullcorder's full-sized avatar

fullcorder

  • Tokyo
View GitHub Profile
@fullcorder
fullcorder / UniTaskStateMachine.cs
Last active January 27, 2023 18:13
Simple StateMachine using UniTask
using System;
using System.Threading;
using Cysharp.Threading.Tasks;
namespace FiniteStateMachine.UniTaskStateMachine
{
public class UniTaskStateMachine
{
private AsyncState currentState;
private AsyncState nextState;
<Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"
xmlns:unity="urn:schemas-jetbrains-com:member-reordering-patterns-unity">
<!-- Pattern to match classes used by Unity that contain serialised fields and event
function methods. Based on the standard "Default Pattern", this will also order
event functions before normal methods, and does not reorder serialised fields,
as this order is reflected in the Unity editor's Inspector -->
<TypePattern DisplayName="Unity classes" Priority="100">
<TypePattern.Match>
<unity:SerializableClass />
@fullcorder
fullcorder / .gitignore
Last active August 4, 2021 06:50
Unity git ignore file
# This .gitignore file should be placed at the root of your Unity project directory
#
# This is fork from https://github.com/github/gitignore
#
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Ll]ogs/
/[Mm]emoryCaptures/
@fullcorder
fullcorder / Portrait2DCameraSizeFitter.cs
Last active March 7, 2019 05:58
Fix AspectRatio and Fit camera size
using UnityEngine;
public class Portrait2DCameraSizeFitter : MonoBehaviour
{
[SerializeField] private Vector2 _baseScreenSize;
[SerializeField] private Camera _camera;
[SerializeField] private float _baseOrthographicSize;
@fullcorder
fullcorder / gist:cac29097c3dfe3b8c2398a00c9721996
Created January 11, 2018 08:24
AdMobMediation AppLovinSdk Android initializeSdk from C#
#if UNITY_ANDROID
var class_AppLovinSdk = new AndroidJavaClass("com.applovin.sdk.AppLovinSdk");
var class_UnityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
var object_currentActivity = class_UnityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
class_AppLovinSdk.CallStatic("initializeSdk", object_currentActivity);
#endif
@fullcorder
fullcorder / disable-automatic-siging.sh
Created June 10, 2017 18:13
Disable atuomatic siginig unity Xcode project
sed -i '' 's/ProvisioningStyle = Automatic;/ProvisioningStyle = Manual;/' build-ios/Unity-iPhone.xcodeproj/project.pbxproj
@fullcorder
fullcorder / gist:a44ad91e434239ddbfb0
Created April 10, 2015 15:57
IntelliJ IDEA uninstall
rm -rf /Applications/IntelliJ IDEA 14.app
rm -rf ~/Library/Preferences/com.jetbrains.intellij.plist
rm -rf ~/Library/Application\ Support/IntelliJIdea14
rm -rf ~/Library/Caches/IntelliJIdea14
rm -rf ~/Library/Logs/IntelliJIdea14
rm -rf ~/Library/Preferences/IntelliJIdea14