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

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