// Use this for initialization
 void Awake()
 {
     //anim = GetComponent<Animator> ();
     if (instance == null)
     {
         instance = this;
     }
 }
    // Use this for initialization
    void Start()
    {
        if (bossHP != bossHPMax)
            bossHP = bossHPMax;

        playerPosition = GameObject.FindGameObjectWithTag ("player").transform;
        playerScript = GameObject.FindGameObjectWithTag ("player").GetComponent <playerScripts>();
        damagePtoB = playerScript.damage;
    }
Beispiel #3
0
 public void Start()
 {
     playerScript = GameObject.FindGameObjectWithTag("player").GetComponent<playerScripts> ();
     velocity = playerScript.bulletSpeedP;
     rigidbody2D.velocity = new Vector2 (0f, velocity);
 }