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
# -------------------- | |
# PROMPT AND DOCUMENT ATTACK | |
# -------------------- | |
import os | |
from dotenv import load_dotenv | |
import requests | |
load_dotenv() |
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
# -------------------- | |
# Groundedness Q&A | |
# -------------------- | |
import os | |
from dotenv import load_dotenv | |
import requests | |
load_dotenv() |
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
// Assign the prefab in the editor | |
public GameObject prefab; | |
void Update() | |
{ | |
// Define range for random values | |
int spawnPointX = Random.Range(-2, 2); | |
int spawnPointY = Random.Range(-2, 2); | |
int spawnPointZ = Random.Range(-2, 2); | |
Vector3 spawnPosition = new Vector3(spawnPointX, spawnPointY, spawnPointZ); |
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
// Assign the prefab in the editor | |
public GameObject prefab; | |
void Update() | |
{ | |
// Spawns a prefab when a key is pressed | |
if (Input.GetKeyDown("space")) | |
{ | |
Instantiate(prefab); | |
} |
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
// Assign the prefab in the editor | |
public GameObject prefab; | |
void Start() | |
{ | |
// Spawns a prefab at a specific position with no rotation | |
Instantiate(prefab, new Vector3(2, 2, -2), Quaternion.identity); | |
} |
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
// Assign the prefab in the editor | |
public GameObject prefab; | |
void Start() | |
{ | |
// Spawns a prefab at the default position 0, 0, 0 with a default rotation 0, 0, 0 | |
Instantiate(prefab); | |
} |
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
if (Input.GetKeyDown("1")) | |
{ | |
SceneManager.LoadScene("SceneOne"); | |
} | |
else if (Input.GetKeyDown("2")) | |
{ | |
SceneManager.LoadScene("SceneTwo"); | |
} |
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
if (Input.GetKeyDown("r")) | |
{ | |
SceneManager.LoadScene("SceneOne"); | |
} |
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
// Assign the prefab in the editor | |
public GameObject prefab; | |
void Update() | |
{ | |
// Define range for random values | |
int spawnPointX = Random.Range(-2, 2); | |
int spawnPointY = Random.Range(-2, 2); | |
int spawnPointZ = Random.Range(-2, 2); | |
Vector3 spawnPosition = new Vector3(spawnPointX, spawnPointY, spawnPointZ); |
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
azure-functions | |
requests | |
datetime | |
twilio | |
emoji |
NewerOlder