private void CreateBlood(RaycastHit2D hit) { gameObject.SetActive(false); var offset = transform.right * hit.distance; ClientGraphic.CreateBlood(hit.transform, transform, offset); Hat(hit); }
private void Awake() { bulletPool = new BulletPool(bulletPrefab); headBloodPool = new BloodPool(headBloodPrefab); bodyBloodPool = new BloodPool(bodyBloodPrefab); legBloodPool = new BloodPool(legBloodPrefab); bloodHolePool = new BloodHolePool(bloodHolePrefab); instanse = this; }