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

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

        FireballScript.gameObject.layer = 12;
    }
예제 #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;
    }
예제 #4
0
 // Use this for initialization
 void Start()
 {
     throwScript = GetComponent <ThrowScript>();
     grab1       = transform.FindChild("LRotationBase").GetComponentInChildren <DetectGrabbableObject>();
     grab2       = transform.FindChild("RRotationBase").GetComponentInChildren <DetectGrabbableObject>();
 }
예제 #5
0
파일: Kunai.cs 프로젝트: Eijs666/Slashbot
 public void EnemyThrow()
 {
     //Instantiate Kunai
     ThrowScript newThrowScript = Instantiate(kunaiThrowScript, enemyAttackPoint.position, enemyAttackPoint.rotation) as ThrowScript;
 }
예제 #6
0
파일: Kunai.cs 프로젝트: Eijs666/Slashbot
 public void Fireball()
 {
     //Instantiate Kunai
     ThrowScript newThrowScript = Instantiate(fireballScript, attackPoint.position, attackPoint.rotation) as ThrowScript;
 }
예제 #7
0
파일: Kunai.cs 프로젝트: Eijs666/Slashbot
 public void PlayerThrow()
 {
     //Instantiate Kunai
     ThrowScript newThrowScript = Instantiate(kunaiThrowScript, attackPoint.position, attackPoint.rotation) as ThrowScript;
 }