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
var awsSdk = require('aws-sdk'); | |
var libmime = require('libmime'); | |
exports.handler = (event, context, callback) => { | |
var ses = new awsSdk.SES({ | |
apiVersion: '2010-12-01', | |
region: 'SESのリージョン' | |
}); | |
// 送信先 |
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; | |
using UnityEngine.Events; | |
using UnityEngine.EventSystems; | |
public class CustomEventClick : MonoBehaviour, IPointerDownHandler, IPointerUpHandler { | |
public UnityEvent customClick; | |
Vector2 beginPosition; // クリック開始位置 |
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
var frisby = require('frisby'); | |
var HOST = 'b.hatena.ne.jp'; | |
var searchUrl = 'http://imas-cinderella.com'; | |
frisby.create('はてブエントリー情報取得API') | |
.get('http://' + HOST + '/entry/jsonlite/?url=' + searchUrl) | |
.expectHeaderContains('content-type', 'application/json') | |
.expectStatus(200) | |
.expectJSONTypes({ | |
count: String, |
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; | |
using System.Collections.Generic; // ジェネリックコレクション利用 | |
class SaveList: MonoBehaviour { | |
List<Vector3> positionList = new List<Vector3>(); // リスト定義 (この場合はVector3型のリスト) | |
void OnCollisionEnter(Collision c) { | |
if(c.gameObject.tag == "EnemyBullet") | |
positionList.Add(this.transform.position); // リストへ追加 |
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; | |
public class SetStageCubes : MonoBehaviour { | |
public GameObject[] stage_cubes; | |
public int max_mapsize; | |
private float map_Row; | |
private float map_Col; | |
void Start () { |
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; | |
public class ShakeCamera : MonoBehaviour { | |
public float setShakeTIme; // 持続振動時間 | |
private float lifeTime; | |
private Vector3 savePosition; | |
private float lowRangeX; | |
private float maxRangeX; |
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; | |
public class ChangeScreenToWorldPoint : MonoBehaviour{ | |
private RaycastHit mouse_hit; | |
public float limit_ray; | |
public Vector3 point_val; | |
void Start(){ | |
if (limit_ray <= 0) limit_ray = 700.0f; |