public MapObject CreateShooter(Vector3 logicPos) { MapObject shooter = CreatePlantToMap(GameDefine.Path.Shooter, logicPos); if (shooter == null) { return(null); } DailyMgr.RegisterDailyAction(shooter, new TriggerShooterDailyAction()); return(shooter); }
public override void Execute() { MapObjectAttribute mapOjectAttribute = Info.mapObject.GetAttribute <MapObjectAttribute>(); if (mapOjectAttribute.Hp <= 0) { return; } DailyManager dailyManager = GlobalEnvironment.Instance.Get <DailyManager>(); dailyManager.RegisterDailyAction(Info.mapObject, Info.dailyAction); }