예제 #1
0
        void Attack()
        {
            BulletRock clone = Instantiate <BulletRock> (bullet, transform.position, Quaternion.identity);

            clone.Init(spriteRenderer.flipX ?
                       Direction.left :
                       Direction.right);
        }
예제 #2
0
        void FastAttack()
        {
            BulletRock clone = Instantiate <BulletRock>(bullet, transform.position, Quaternion.identity);

            //BulletRock bulletRock = clone.GetComponent<BulletRock>();
            clone.Init(10);
            clone.InitDirection(spriteRenderer.flipX ? BulletRock.Direction.left : BulletRock.Direction.right);
        }
예제 #3
0
        void FastAttack()
        {
            BulletRock clone = Instantiate <BulletRock> (bullet, transform.position, Quaternion.identity);

            clone.Init(10f);
        }