1 using System.Collections;
2 using System.Collections.Generic;
5 public class Scissors : MonoBehaviour
13 public void StartShoot(bool isFacingLeft)
15 Rigidbody2D rb2d = GetComponent<Rigidbody2D>();
16 if(isFacingLeft == true)
18 rb2d.velocity = new Vector2(-speed, 0);
19 transform.localScale = new Vector3(-0.4f, 0.4f, 1);
23 rb2d.velocity = new Vector2(speed, 0);
24 transform.localScale = new Vector3(0.4f, 0.4f, 1);
27 Destroy(gameObject, lifeTime);