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 SpawnInCircle : MonoBehaviour { | |
public int numObjects = 5; | |
public GameObject prefab; | |
void Start() { | |
Vector3 center = transform.position; | |
for (int i = 0; i < numObjects; i++){ |
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
// Original Source: https://stackoverflow.com/a/46008025/9389474 | |
// Get Request | |
void Start() | |
{ | |
StartCoroutine(getRequest("http:///www.yoururl.com")); | |
} | |
IEnumerator GetRequest(string uri) | |
{ |
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.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Accelerometer: MonoBehaviour | |
{ | |
public bool isFlat = true; | |
private RigidBody rigid; | |
private void Start() |