Esempio n. 1
0
    public void PlayerThrow()
    {
        //Instantiate Kunai
        ThrowScript PlayerThrowScript = Instantiate(kunaiThrowScript, attackPoint.position, attackPoint.rotation) as ThrowScript;

        PlayerThrowScript.gameObject.layer = 12;
    }
Esempio n. 2
0
    public void Fireball()
    {
        //Instantiate Kunai
        ThrowScript FireballScript = Instantiate(fireballScript, attackPoint.position, attackPoint.rotation) as ThrowScript;

        FireballScript.gameObject.layer = 12;
    }
Esempio n. 3
0
    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;
    }
Esempio n. 4
0
 // Use this for initialization
 void Start()
 {
     throwScript = GetComponent <ThrowScript>();
     grab1       = transform.FindChild("LRotationBase").GetComponentInChildren <DetectGrabbableObject>();
     grab2       = transform.FindChild("RRotationBase").GetComponentInChildren <DetectGrabbableObject>();
 }
Esempio n. 5
0
 public void EnemyThrow()
 {
     //Instantiate Kunai
     ThrowScript newThrowScript = Instantiate(kunaiThrowScript, enemyAttackPoint.position, enemyAttackPoint.rotation) as ThrowScript;
 }
Esempio n. 6
0
 public void Fireball()
 {
     //Instantiate Kunai
     ThrowScript newThrowScript = Instantiate(fireballScript, attackPoint.position, attackPoint.rotation) as ThrowScript;
 }
Esempio n. 7
0
 public void PlayerThrow()
 {
     //Instantiate Kunai
     ThrowScript newThrowScript = Instantiate(kunaiThrowScript, attackPoint.position, attackPoint.rotation) as ThrowScript;
 }