void Start() { referenceObject = GameObject.FindWithTag("ObjectOne"); referenceScript = referenceObject.GetComponent <DartGun>(); myAnimator = myAnimatorObject.GetComponent <Animator>(); }
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); }
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); } }
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); } }