예제 #1
0
        private void CreateBullet()
        {
            var list = AttackLibrary.GetInstance;
            shibuki = (GameObject.Instantiate(list.shibuki) as GameObject).GetComponent<Shibuki>();
            shibuki.parent = character;
            shibuki.Init();

            shibuki.SetTransformParent();

            MoveParameter param = new MoveParameter(character.frontDirection + Random.Range(-25, 25), Random.Range(2F, 4F));
            Damage d = new Damage(30, true, 5, param.direction, false);
            shibuki.SetMoveDirection(param, d);
            SoundManager.Play(SoundManager.shot1);
        }
예제 #2
0
        private void CreateBullet()
        {
            var list = AttackLibrary.GetInstance;

            shibuki        = (GameObject.Instantiate(list.shibuki) as GameObject).GetComponent <Shibuki>();
            shibuki.parent = character;
            shibuki.Init();

            shibuki.SetTransformParent();

            MoveParameter param = new MoveParameter(character.frontDirection + Random.Range(-25, 25), Random.Range(2F, 4F));
            Damage        d     = new Damage(30, true, 5, param.direction, false);

            shibuki.SetMoveDirection(param, d);
            SoundManager.Play(SoundManager.shot1);
        }