예제 #1
0
        protected override ParamObject Produce()
        {
            Transform            objPrefab = Prefab.Load("ExplosionParamObject");
            Transform            xform     = PoolManager.Spawn(objPrefab.name, objPrefab);
            ExplosionParamObject obj       = xform.GetComponent <ExplosionParamObject>();

            obj.SetParameters(this);
            return(obj);
        }
        public void Send(GameObject sender, ExplosionParamObject bomb, Vector3 position, Action onComplete)
        {
            this.sender     = sender;
            this.bomb       = bomb;
            this.onComplete = onComplete;

            if (CameraShake != null)
            {
                CameraShake.Shake();
            }

            Invoke("SendDamage", delayOfDamage);
        }
 public LayerMask GetHurtableLayers(ExplosionParamObject bomb)
 {
     throw new System.NotImplementedException();
 }