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

            clone.Init(spriteRenderer.flipX ?
                       Direction.left :
                       Direction.right);
        }
Example #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);
        }
Example #3
0
        void FastAttack()
        {
            BulletRock clone = Instantiate <BulletRock> (bullet, transform.position, Quaternion.identity);

            clone.Init(10f);
        }