public override void trigger(Dictionary <string, object> args) { //Debug.Log("攻擊被觸發"); //BasicControler traget = (BasicControler)args["tragets"]; //Debug.Log("traget:"+traget); //Debug.Log("traget type:" + (args["tragets"].GetType())); unitControler[] tragets = (unitControler[])args["tragets"]; if (!(bool)args["miss"]) { //Debug.Log("製造傷害時傷害數值為:" + damage.num); actionTo(tragets, args); nowTraget = ((BasicControler)tragets[0]).gameObject; Debug.LogWarning("技能名:" + name); if (effection.rushMainStart(animTime, stayTime, nowTraget, Effection)) { Debug.LogWarning("effection.rushMainStart true animTime:" + animTime + "stayTime:" + stayTime + "nowTraget:" + nowTraget); } else { Debug.Log("強制觸發Effection"); Effection(); } //anim_time = 0; //stay_time = 0; // //count = 0; //triggerEff = false; //Timer.main.logInTimer(Anim); } else { BasicControler traget = (BasicControler)tragets[0]; NumberCreater.main.CreateMissing(traget.transform.position); } setTime(args); }