Ejemplo n.º 1
0
        void Start()
        {
            _player = Player.Instance;
            _shield = Player.Instance.ShieldComponent;

            if (gameObject.tag == "EnemyBullet"){
                Speed /= (int)2; // Slow enemy bullets
                Damage /= (int)2; // Weak enemy bullets
            }

            //transform.GetComponent<SpriteRenderer>().sprite.texture.
            //transform.rotation = new Quaternion(0f,0f,0f,344f);
            transform.Rotate(0, 0, Rotation);

            SoundManager.Instance.Play(SoundManager.Instance.BulletSound);
        }
Ejemplo n.º 2
0
 void Awake()
 {
     _player = GameObject.Find("Player").GetComponent<Player>();
 }
Ejemplo n.º 3
0
 void Start()
 {
     _player = Player.Instance;
     _shield = Player.Instance.MeshComponent;
 }