コード例 #1
0
ファイル: ammoCollision.cs プロジェクト: pixelboogie/Popper
    void Start()
    {
        referenceObject = GameObject.FindWithTag("ObjectOne");
        referenceScript = referenceObject.GetComponent <DartGun>();

        myAnimator = myAnimatorObject.GetComponent <Animator>();
    }
コード例 #2
0
    void Start()
    {
        referenceObject = GameObject.FindWithTag("ObjectOne");
        referenceScript = referenceObject.GetComponent <DartGun>();

        nonTargetObject = GameObject.FindWithTag("nonTarget");
        nonTargetScript = nonTargetObject.GetComponent <NonTarget>();

        startPosition = transform.position;

        myAnimator = GetComponent <Animator>();

        source.PlayOneShot(nonTargetSpawnClip);
    }
コード例 #3
0
    void Start()
    {
        if(photonView.isMine){
            dartGun = GetComponentInChildren<DartGun>();
            allWep.Add((WeaponBase)dartGun);

            soakerGun = GetComponentInChildren<SoakerGun>();
            allWep.Add((WeaponBase)soakerGun);

            sodaGrenadeThrower = GetComponentInChildren<SodaGrenadeThrower>();
            allWep.Add((WeaponBase)sodaGrenadeThrower);

            ChangeWep(dartGun);
        }
    }
コード例 #4
0
    void Start()
    {
        if (photonView.isMine)
        {
            dartGun = GetComponentInChildren <DartGun>();
            allWep.Add((WeaponBase)dartGun);

            soakerGun = GetComponentInChildren <SoakerGun>();
            allWep.Add((WeaponBase)soakerGun);

            sodaGrenadeThrower = GetComponentInChildren <SodaGrenadeThrower>();
            allWep.Add((WeaponBase)sodaGrenadeThrower);

            ChangeWep(dartGun);
        }
    }