예제 #1
0
    public void Init(BulletSO _bulletData)
    {
        bulletData = _bulletData;
        GetComponent <Animator>().runtimeAnimatorController = bulletData.Animation;

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