This file contains 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
#!bin/sh | |
array=('640x920' '640x1096' '750x1334' '1242x2208' '768x1024') | |
for dir in ${array[@]}; do | |
mkdir ${dir} | |
done | |
# 同フォルダ内にあるpng, jpgを取得 | |
for file in `\find . -maxdepth 1 -type f -name '*.png' -or -name '*.jpg'`; do |
This file contains 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
#!bin/sh | |
# 保存用のサブフォルダを作成 | |
mkdir nonalpha | |
# 同フォルダ内にあるpngを取得 | |
for file in `\find . -maxdepth 1 -type f -name '*.png'`; do | |
echo convert ${file} | |
convert ${file} \( +clone -alpha opaque -fill SkyBlue -colorize 100% \) +swap -geometry +0+0 -compose Over -composite -alpha off nonalpha/${file} | |
done |
This file contains 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.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditor.iOS.Xcode; | |
using UnityEditor.Callbacks; | |
using System.Collections; | |
public class XcodeSettingsPostProcesser | |
{ |
This file contains 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 UnityEditor; | |
using System.IO; | |
using System.Linq; | |
using System.Collections; | |
public class BatchBuild { | |
// Android ビルド | |
[MenuItem("Build/Android")] |
This file contains 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 UnityEditor; | |
using System.Linq; | |
using System.Collections; | |
using System.Collections.Generic; | |
public class ChangeEnvironment { | |
[MenuItem("Environment/Develop")] | |
static void Develop(){ |
This file contains 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; | |
using System.Collections; | |
public class ActionPointManager : MonoBehaviour { | |
// 1ActionPoint回復をするのに必要な時間 | |
const int recoveryUnitSeconds = 180; | |
public int point { get; private set; } |
This file contains 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; | |
/// <summary> | |
/// ~ Fps counter for unity ~ | |
/// Brief : Calculate the FPS and display it on the screen | |
/// HowTo : Create empty object at initial scene and attach this script!!! | |
/// </summary> | |
public class UniFPSCounter : MonoBehaviour | |
{ | |
// for ui. |
This file contains 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
#!/bin/sh | |
# | |
# git pre-commit for Unity | |
# It check Forgot to add the meta file | |
# An alert is issued when a file has been added but no meta file has been added | |
# | |
# To enable this hook, rename this file to "pre-commit". | |
addfiles=`git diff --cached --name-status | awk '$2 != "A" { print $2 }'` | |
for file in $addfiles |
This file contains 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.Generic; | |
public class ObjectPool | |
{ | |
private const string ObjectPoolPrefix = "Pool"; | |
private readonly GameObject _target; | |
private readonly Transform _poolParent; | |
private readonly List<GameObject> _objects; |
This file contains 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
# This .gitignore file should be placed at the root of your Unity project directory | |
# | |
# Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore | |
# | |
/[Ll]ibrary/ | |
/[Tt]emp/ | |
/[Oo]bj/ | |
/[Bb]uild/ | |
/[Bb]uilds/ | |
/[Ll]ogs/ |