Example #1
0
    private void Start()
    {
        rigidbody = GetComponent <Rigidbody>();
        death     = GetComponent <ExplosibleDeath>();

        target = GameObject.FindGameObjectWithTag("Player");
    }
Example #2
0
    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;
    }
Example #3
0
 void Start()
 {
     myMaterial = GetComponentInChildren <MeshRenderer>().material;
     death      = GetComponent <ExplosibleDeath>();
 }