Exemplo n.º 1
0
 private void CreateBullet()
 {
     var list = AttackLibrary.GetInstance;
     amulet = (GameObject.Instantiate(list.amuret) as GameObject).GetComponent<HomingAmulet>();
     amulet.parent = character;
     amulet.Init();
     amulet.SetTransformParent();
     SoundManager.Play(SoundManager.amulet);
 }
Exemplo n.º 2
0
        private void CreateBullet()
        {
            var list = AttackLibrary.GetInstance;

            amulet        = (GameObject.Instantiate(list.amuret) as GameObject).GetComponent <HomingAmulet>();
            amulet.parent = character;
            amulet.Init();
            amulet.SetTransformParent();
            SoundManager.Play(SoundManager.amulet);
        }