void OnTriggerEnter2D(Collider2D hitInfo) { Paparazzi Paparazzi = hitInfo.GetComponent <Paparazzi>(); if (Paparazzi != null) { Paparazzi.TakeDamage(damage); } Debug.Log(hitInfo); Destroy(gameObject); }
void OnTriggerEnter2D(Collider2D hitInfo) { Paparazzi Paparazzi = hitInfo.GetComponent <Paparazzi>(); if (Paparazzi != null) { Paparazzi.TakeDamage(damage); } Boss Boss = hitInfo.GetComponent <Boss>(); if (Boss != null) { Boss.TakeDamage(damage); } Instantiate(Resources.Load("hitEffect"), transform.position, transform.rotation); Destroy(gameObject); Debug.Log(hitInfo); }
public void Enter(Paparazzi paparazzi) { this.paparazzi = paparazzi; paparazzi.Target = null; }
public void Enter(Paparazzi paparazzi) { this.Paparazzi = paparazzi; }