Skip to content

Instantly share code, notes, and snippets.

@naojitaniguchi
naojitaniguchi / MoveByVelocity.cs
Created May 1, 2019 22:33
Script for move 2D character by setting velocity of Rigidbody2D
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[RequireComponent(typeof(Rigidbody2D))]
public class MoveByVelocity : MonoBehaviour
{
[Header("Input keys")]
public Enums.KeyGroups typeOfControl = Enums.KeyGroups.ArrowKeys;
@naojitaniguchi
naojitaniguchi / moog_scale.tidal
Created May 25, 2019 23:51
Making Scale with speed command by tidal cycles
d1 $ sound "moog:1" |> speed "1"
--2 E flat
d2 $ sound "moog:1" |> speed (1 + (1/12) * 2)
--3 E
d3 $ sound "moog:1" |> speed (1 + (1/12) * 3)
--4 F
d3 $ sound "moog:1" |> speed (1 + (1/12) * 4)
--6 G
d4 $ sound "moog:1" |> speed (1 + (1/12) * 6)
--7 G#
@naojitaniguchi
naojitaniguchi / ButtonPushNextScene.cs
Created November 26, 2022 02:50
Load scene by clicking UI button in Unity
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class ButtonPushNextScene : MonoBehaviour
{
public string nextScene;
// Start is called before the first frame update
void Start()