Esempio n. 1
0
        private void CreateBlood(RaycastHit2D hit)
        {
            gameObject.SetActive(false);

            var offset = transform.right * hit.distance;

            ClientGraphic.CreateBlood(hit.transform, transform, offset);

            Hat(hit);
        }
Esempio n. 2
0
        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;
        }