Exemplo n.º 1
0
    public void Init(BulletSO _bulletData)
    {
        bulletData = _bulletData;
        GetComponent <Animator>().runtimeAnimatorController = bulletData.Animation;

        rb = GetComponent <Rigidbody2D>();
    }
Exemplo n.º 2
0
 public void Setup(BulletSO bullSO)
 {
     bulletSO = bullSO;
     GetComponentInChildren <SpriteRenderer>().sprite = bulletSO.bulletSprite;
     gameObject.name = bullSO.name;
 }
Exemplo n.º 3
0
 protected override void Awake()
 {
     base.Awake();
     BulletType = bullet;
 }