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
/// <summary> | |
/// Calculates the trajectory. | |
/// </summary> | |
/// <returns>The trajectory.</returns> | |
/// <param name="start">Start.</param> | |
/// <param name="power">Power.</param> | |
/// <param name="mass">Mass.</param> | |
/// <param name="gravity">Gravity.</param> | |
/// <param name="gravityScale">Gravity scale.</param> | |
/// <param name="time">Time.</param> |
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
var angle = 140; // Angle | |
var angleV3 = Quaternion.AngleAxis(angle, Vector3.forward) * Vector3.up |
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
void Awake() | |
{ | |
BoxCollider boxCollider = GetComponent<BoxCollider>(); | |
if (boxCollider == null) | |
{ | |
boxCollider = gameObject.AddComponent<BoxCollider>(); | |
} | |
} | |
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 StaticConstructorSample | |
{ | |
static void StaticConstructorSample() | |
{ | |
// 初期化処理 | |
} | |
public static void Execute() | |
{ | |
// 実行処理 |
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
float test0 = 2.4f; | |
float test1 = 2.49999f; | |
float test2 = 2.5f; | |
float test3 = 2.51f; | |
float test4 = 3f; | |
string result = string.Format( | |
"test0:{0}\ntest1:{1}\ntest2:{2}\ntest3:{3}\ntest4:{4}" | |
, | |
test0.ToString("0.#"), // 結果:2.4 |
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
// @takashicompany (http://takashicompany.com) | |
using UnityEngine; | |
using System.Collections; | |
namespace TakashiCompany.Unity.Util | |
{ | |
/// <summary> | |
/// Trajectory calculate. | |
/// </summary> |
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
# BLT | |
* サイズ: レギュラー | |
* パン: セサミ | |
* 野菜: レタス上限まで | |
* ソース: 良さ気なやつ or オススメ | |
# ローストビーフ | |
* サイズ: レギュラー | |
* パン: セサミ | |
* 野菜: レタス上限まで |
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
// @takashicompany (takashicompany.com) | |
// CustomHierarchy var1.0.1 | |
using UnityEditor; | |
using UnityEngine; | |
using System; | |
using System.Reflection; | |
using System.Collections.Generic; |
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
■BLT | |
* サイズ: レギュラー | |
* 野菜: レタス上限まで | |
* パン: セサミ | |
* ドレシング: せりーぬさんチョイス | |
■スパイシーチキンフィレ | |
* サイズ: レギュラー | |
* 野菜: レタス上限まで | |
* パン: セサミ |
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
require 'redcarpet' | |
# 式展開時に渡す変数 | |
version_name = "v1.1.0" | |
# Markdown形式でコンテンツを書く | |
markdown_text = | |
" | |
# Logfat #{version_name} |