public void dodge() { if (!is_dodging) { catch_radar.ping(); foreach (var hit in catch_radar.hits) { if (hit.transform.GetComponent <Controller_bullet>()) { grab_ball(hit.transform); return; } } dodge_radar.ping(); foreach (var hit in dodge_radar.hits) { if (hit.transform.GetComponent <Controller_bullet>()) { dodge_ball(hit.transform); return; } } } }
public virtual void eat() { radar.ping(); foreach (var hit in radar.hits) { var item = hit.transform.GetComponent <chibi.inventory.Item>(); item.use(rol); Destroy(item.gameObject); } }
public override void on_reach_target() { if (origin) { catch_radar.ping(); foreach (var hit in catch_radar.hits) { var item = hit.transform.GetComponent <chibi.inventory.Item>(); owner.grab(item); } } base.on_reach_target(); }