private void Start() { rigidbody = GetComponent <Rigidbody>(); death = GetComponent <ExplosibleDeath>(); target = GameObject.FindGameObjectWithTag("Player"); }
void Start() { rigidbody = GetComponent <Rigidbody>(); death = GetComponent <ExplosibleDeath>(); muzzle = transform.GetChild(1).gameObject; projectileParent = GameObject.Find("Projectiles").transform; baseProjectile = projectile; baseSpeed = movingSpeed; startingPosition = transform.position; }
void Start() { myMaterial = GetComponentInChildren <MeshRenderer>().material; death = GetComponent <ExplosibleDeath>(); }