public void PlayerThrow() { //Instantiate Kunai ThrowScript PlayerThrowScript = Instantiate(kunaiThrowScript, attackPoint.position, attackPoint.rotation) as ThrowScript; PlayerThrowScript.gameObject.layer = 12; }
public void Fireball() { //Instantiate Kunai ThrowScript FireballScript = Instantiate(fireballScript, attackPoint.position, attackPoint.rotation) as ThrowScript; FireballScript.gameObject.layer = 12; }
private void UseThrowProperty(GameObject newRobot, bool isImposter, GameObject selectedSphere) { ThrowScript script = newRobot.AddComponent <ThrowScript> (); script.arCamera = arCamera; script.isImposter = isImposter; script.resultText = resultText; script.gestureButtonScript = holdButton.GetComponent <GestureButton> (); script.selectedSphere = selectedSphere; script.throwBallPrefab = throwBallPrefab; }
// Use this for initialization void Start() { throwScript = GetComponent <ThrowScript>(); grab1 = transform.FindChild("LRotationBase").GetComponentInChildren <DetectGrabbableObject>(); grab2 = transform.FindChild("RRotationBase").GetComponentInChildren <DetectGrabbableObject>(); }
public void EnemyThrow() { //Instantiate Kunai ThrowScript newThrowScript = Instantiate(kunaiThrowScript, enemyAttackPoint.position, enemyAttackPoint.rotation) as ThrowScript; }
public void Fireball() { //Instantiate Kunai ThrowScript newThrowScript = Instantiate(fireballScript, attackPoint.position, attackPoint.rotation) as ThrowScript; }
public void PlayerThrow() { //Instantiate Kunai ThrowScript newThrowScript = Instantiate(kunaiThrowScript, attackPoint.position, attackPoint.rotation) as ThrowScript; }